Skip to content

Commit

Permalink
test(taiko-client): fix integration test for pacaya fork
Browse files Browse the repository at this point in the history
YoGhurt111 committed Jan 21, 2025
1 parent 6f6ca97 commit b4a77c4
Showing 3 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/taiko-client/Makefile
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ lint:
test:
@PACKAGE=${PACKAGE} \
L2_NODE=$${L2_NODE:-l2_geth} \
DEPLOY_OLD_FORK="true" \
RUN_TESTS=true \
./integration_test/entrypoint.sh

Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ source scripts/common.sh
source integration_test/l1_env.sh

cd ../protocol &&
forge script script/layer1/DeployProtocolOnL1.s.sol:DeployProtocolOnL1 \
forge script script/layer1/based/DeployProtocolOnL1.s.sol:DeployProtocolOnL1 \
--fork-url "$L1_HTTP" \
--broadcast \
--ffi \
22 changes: 22 additions & 0 deletions packages/taiko-client/integration_test/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -14,6 +14,28 @@ check_command "docker"
internal/docker/start.sh
trap "internal/docker/stop.sh" EXIT INT KILL ERR

# deploy old fork l1 contracts
if [ $DEPLOY_OLD_FORK ];then
echo "Deploying old fork contracts....."
git checkout protocol-v1.11.0
source integration_test/l1_env.sh
cd ../protocol && pnpm clean && pnpm install &&
forge script script/layer1/DeployProtocolOnL1.s.sol:DeployProtocolOnL1 \
--fork-url "$L1_HTTP" \
--broadcast \
--ffi \
-vvvvv \
--evm-version cancun \
--private-key "$PRIVATE_KEY" \
--block-gas-limit 200000000 \
--legacy
export OLD_FORK_TAIKO_INBOX=$(echo "$DEPLOYMENT_JSON" | jq '.taiko' | sed 's/\"//g')
echo "Old fork taiko inbox contract: $OLD_FORK_TAIKO_INBOX"
git checkout pacaya_fork && pnpm clean && pnpm install && cd ../taiko-client
else
echo "Don't deploy old fork contracts"
fi

# deploy l1 contracts
integration_test/deploy_l1_contract.sh

0 comments on commit b4a77c4

Please sign in to comment.