From f48748720bac92e5b907d144a0be49d48ee65495 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Mon, 8 Jul 2024 12:39:24 -0400 Subject: [PATCH] add new user for migration tests --- cmd/zetae2e/config/localnet.yml | 8 ++++---- contrib/localnet/orchestrator/start-zetae2e.sh | 5 +++++ pkg/gas/gas_limits.go | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/cmd/zetae2e/config/localnet.yml b/cmd/zetae2e/config/localnet.yml index 21239e5d87..83b32c10f2 100644 --- a/cmd/zetae2e/config/localnet.yml +++ b/cmd/zetae2e/config/localnet.yml @@ -32,14 +32,14 @@ additional_accounts: bech32_address: "zeta17w0adeg64ky0daxwd2ugyuneellmjgnx4e483s" evm_address: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266" private_key: "ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" + user_migration: + bech32_address: "zeta1pvtxa708yvdmszn687nne6nl8qn704daf420xz" + evm_address: "0x0B166ef9e7231Bb80A7A3FA73CEA7F3827E7D5BD" + private_key: "0BCC2FA28B526F90E1D54648D612DB901E860BF68248555593F91EA801C6B482" user_fungible_admin: bech32_address: "zeta1svzuz982w09vf2y08xsh8qplj36phyz466krj3" evm_address: "0x8305C114Ea73cAc4A88f39A173803F94741b9055" private_key: "d88d09a7d6849c15a36eb6931f9dd616091a63e9849a2cc86f309ba11fb8fec5" - user_migration_admin: - bech32_address: "zeta1pvtxa708yvdmszn687nne6nl8qn704daf420xz" - evm_address: "0x0B166ef9e7231Bb80A7A3FA73CEA7F3827E7D5BD" - private_key: "0BCC2FA28B526F90E1D54648D612DB901E860BF68248555593F91EA801C6B482" rpcs: zevm: "http://zetacore0:8545" evm: "http://eth:8545" diff --git a/contrib/localnet/orchestrator/start-zetae2e.sh b/contrib/localnet/orchestrator/start-zetae2e.sh index 86dc089c2b..b51c1e6344 100644 --- a/contrib/localnet/orchestrator/start-zetae2e.sh +++ b/contrib/localnet/orchestrator/start-zetae2e.sh @@ -77,6 +77,11 @@ address=$(yq -r '.additional_accounts.user_admin.evm_address' config.yml) echo "funding admin tester address ${address} with 10000 Ether" geth --exec "eth.sendTransaction({from: eth.coinbase, to: '${address}', value: web3.toWei(10000,'ether')})" attach http://eth:8545 +# unlock migration tests accounts +address=$(yq -r '.additional_accounts.user_migration.evm_address' config.yml) +echo "funding migration tester address ${address} with 10000 Ether" +geth --exec "eth.sendTransaction({from: eth.coinbase, to: '${address}', value: web3.toWei(10000,'ether')})" attach http://eth:8545 + ### Run zetae2e command depending on the option passed if [ "$LOCALNET_MODE" == "upgrade" ]; then diff --git a/pkg/gas/gas_limits.go b/pkg/gas/gas_limits.go index 04e416477e..b585918b10 100644 --- a/pkg/gas/gas_limits.go +++ b/pkg/gas/gas_limits.go @@ -7,7 +7,7 @@ import ( const ( // EVMSend is the gas limit required to transfer tokens on an EVM based chain - EVMSend = 100_000 + EVMSend = 21_000 // TODO: Move gas limits from zeta-client to this file // https://github.com/zeta-chain/node/issues/1606