deterministic addr & test bugfixes

This commit is contained in:
Tim Olson
2023-10-08 01:11:33 -04:00
parent 52069cfe0b
commit 1fabd95940
9 changed files with 30 additions and 16 deletions

View File

@@ -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 "$@"

View File

@@ -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
View File

@@ -0,0 +1,3 @@
#!/bin/bash
./bin/build.sh
forge test -vvvv --fork-url arbitrum_ankr