Skip to content

Commit

Permalink
added salt to deploy for persistent addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
ametel01 committed Jun 4, 2024
1 parent f9d83fb commit 6991430
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion starknet/katana/declare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ declare_contract() {
echo "Declaring Cairo 1 class for $contract_name..."

# Run the command and capture the output
output=$(starkli declare "$contract_file" -w --compiler-version 2.6.2)
output=$(starkli declare "$contract_file" -w --compiler-version 2.6.2)

echo "$contract_name: $output" >> katana/declared-classes.txt
echo "Class hash for $contract_name saved to declared-classes.txt"
Expand Down
2 changes: 1 addition & 1 deletion starknet/katana/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ deploy_contract() {
echo "Deploying contract for $contract_name with class hash $class_hash..."

# Run the deployment command and capture the output
output=$(starkli deploy "$class_hash" -w)
output=$(starkli deploy "$class_hash" --salt 0x1 -w)

echo "$contract_name: $output" >> katana/deployed-contracts.txt
echo "Deployment address for $contract_name saved to deployed-contracts.txt"
Expand Down

0 comments on commit 6991430

Please sign in to comment.