deterministic addr & test bugfixes
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# this script requires the jq command $(sudo apt install jq)
|
||||
|
||||
# first-pass build
|
||||
forge build
|
||||
forge build "$@"
|
||||
|
||||
# calculate the Vault init code hash using the bytecode generated for Vault
|
||||
# shellcheck disable=SC2046
|
||||
@@ -16,4 +16,4 @@ mkdir gen &> /dev/null
|
||||
echo "export const VAULT_INIT_CODE_HASH='$VAULT_INIT_CODE_HASH';" > gen/vaultHash.js
|
||||
|
||||
# final build after hash values are set
|
||||
forge build
|
||||
forge build "$@"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#db-migrate up
|
||||
#cd ../contract
|
||||
|
||||
./bin/build.sh
|
||||
#source ./bin/build.sh
|
||||
anvil -f arbitrum_ankr --chain-id 1338 &
|
||||
# todo check anvil result
|
||||
ANVIL_PID=$!
|
||||
@@ -14,7 +14,7 @@ sleep 2
|
||||
forge script script/Deploy.sol -vvvv --fork-url http://localhost:8545 --broadcast
|
||||
|
||||
trap_ctrlc() {
|
||||
echo
|
||||
echo exiting anvil
|
||||
kill $ANVIL_PID
|
||||
}
|
||||
|
||||
|
||||
3
bin/test.sh
Executable file
3
bin/test.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
./bin/build.sh
|
||||
forge test -vvvv --fork-url arbitrum_ankr
|
||||
Reference in New Issue
Block a user