diff --git a/contracts/src/DeployGatewayLogic.sol b/contracts/src/DeployGatewayLogic.sol index 9d10f4448a..8c5cc70282 100644 --- a/contracts/src/DeployGatewayLogic.sol +++ b/contracts/src/DeployGatewayLogic.sol @@ -8,7 +8,7 @@ import {ParaID} from "./Types.sol"; import {Script} from "forge-std/Script.sol"; import {stdJson} from "forge-std/StdJson.sol"; -contract DeployGateway is Script { +contract DeployGatewayLogic is Script { using stdJson for string; function setUp() public {} diff --git a/web/packages/test/scripts/deploy-contracts.sh b/web/packages/test/scripts/deploy-contracts.sh index 5ac60bf26e..652720e1ed 100755 --- a/web/packages/test/scripts/deploy-contracts.sh +++ b/web/packages/test/scripts/deploy-contracts.sh @@ -3,8 +3,9 @@ set -eu source scripts/set-env.sh -deploy_contracts() -{ +deploy_command() { + local deploy_script=$1 + pushd "$contract_dir" if [ "$eth_network" != "localhost" ]; then forge script \ @@ -13,15 +14,31 @@ deploy_contracts() --verify \ --etherscan-api-key $etherscan_api_key \ -vvv \ - src/DeployScript.sol:DeployScript + $deploy_script else forge script \ --rpc-url $eth_endpoint_http \ --broadcast \ -vvv \ - src/DeployScript.sol:DeployScript + $deploy_script fi popd +} + +deploy_gateway_logic() +{ + deploy_command src/DeployGatewayLogic.sol:DeployGatewayLogic + + pushd "$test_helpers_dir" + pnpm generateContracts "$output_dir/contracts.json" + popd + + echo "Exported contract artifacts: $output_dir/contracts.json" +} + +deploy_contracts() +{ + deploy_command src/DeployScript.sol:DeployScript pushd "$test_helpers_dir" pnpm generateContracts "$output_dir/contracts.json"