Skip to content

Commit 8076f4a

Browse files
committed
fix script
1 parent 95ba860 commit 8076f4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/hello/scripts/localnet.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ while [ ! -f "localnet.json" ]; do sleep 1; done
1111
npx hardhat compile --force --quiet
1212

1313
GATEWAY_ZETACHAIN=$(jq -r '.addresses[] | select(.type=="gateway" and .chain=="zetachain") | .address' localnet.json)
14+
GATEWAY_ETHEREUM=$(jq -r '.addresses[] | select(.type=="gateway" and .chain=="ethereum") | .address' localnet.json)
1415

1516
CONTRACT_ZETACHAIN=$(npx hardhat deploy --name Universal --network localhost --gateway "$GATEWAY_ZETACHAIN" --json | jq -r '.contractAddress')
1617
echo -e "\n🚀 Deployed contract on ZetaChain: $CONTRACT_ZETACHAIN"
1718

1819
PRIVATE_KEY=$(jq -r '.private_keys[0]' ~/.zetachain/localnet/anvil.json)
1920

2021
yarn zetachain evm call \
21-
--gateway "$GATEWAY_ZETACHAIN" \
22+
--gateway "$GATEWAY_ETHEREUM" \
2223
--receiver "$CONTRACT_ZETACHAIN" \
2324
--rpc http://localhost:8545 \
2425
--types string \

0 commit comments

Comments
 (0)