Skip to content

Commit

Permalink
fix address
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed May 19, 2024
1 parent a23fb82 commit 879a87d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions cmd/zetae2e/config/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,20 @@ func getBtcClient(rpcConf config.BitcoinRPC) (*rpcclient.Client, error) {
func getEVMClient(ctx context.Context, rpc, privKey string) (*ethclient.Client, *bind.TransactOpts, error) {
evmClient, err := ethclient.Dial(rpc)
if err != nil {
return nil, nil, err
return nil, nil, fmt.Errorf("failed to dial evm client: %w", err)
}

chainid, err := evmClient.ChainID(ctx)
if err != nil {
return nil, nil, err
return nil, nil, fmt.Errorf("failed to get chain id: %w", err)
}
deployerPrivkey, err := crypto.HexToECDSA(privKey)
if err != nil {
return nil, nil, err
return nil, nil, fmt.Errorf("failed to get deployer privkey: %w", err)
}
evmAuth, err := bind.NewKeyedTransactorWithChainID(deployerPrivkey, chainid)
if err != nil {
return nil, nil, err
return nil, nil, fmt.Errorf("failed to get keyed transactor: %w", err)
}

return evmClient, evmAuth, nil
Expand Down
4 changes: 2 additions & 2 deletions cmd/zetae2e/local/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ var (
UserZetaTestPrivateKey = "729a6cdc5c925242e7df92fdeeb94dadbf2d0b9950d4db8f034ab27a3b114ba7" // #nosec G101 - used for testing

// UserZEVMMPTestAddress is the address of the account for testing ZEVM Message Passing
UserZEVMMPTestAddress = ethcommon.HexToAddress("0x9880B47b58B1926623Db9c7CEb9615D1b6430a80")
UserZEVMMPTestPrivateKey = "03f9432cae16eca701dfb13d1fcbd78fe27fc9f741dca7b78761f64ad0c0b8eaab" // #nosec G101 - used for testing
UserZEVMMPTestAddress = ethcommon.HexToAddress("0x8Ae229198eCE3c889C07DB648Ec7C30E6051592c")
UserZEVMMPTestPrivateKey = "105460aebf71b10bfdb710ef5aa6d2932ee6ff6fc317ac9c24e0979903b10a5d" // #nosec G101 - used for testing

// UserBitcoinAddress is the address of the account for testing Bitcoin
UserBitcoinAddress = ethcommon.HexToAddress("0x283d810090EdF4043E75247eAeBcE848806237fD")
Expand Down
4 changes: 2 additions & 2 deletions contrib/localnet/orchestrator/start-zetae2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ echo "funding deployer address 0x5cC2fBb200A929B372e3016F1925DcF988E081fd with 1
geth --exec 'eth.sendTransaction({from: eth.coinbase, to: "0x5cC2fBb200A929B372e3016F1925DcF988E081fd", value: web3.toWei(10000,"ether")})' attach http://eth:8545

# unlock zevm message passing tester accounts
echo "funding deployer address 0x9880B47b58B1926623Db9c7CEb9615D1b6430a80 with 10000 Ether"
geth --exec 'eth.sendTransaction({from: eth.coinbase, to: "0x9880B47b58B1926623Db9c7CEb9615D1b6430a80", value: web3.toWei(10000,"ether")})' attach http://eth:8545
echo "funding deployer address 0x8Ae229198eCE3c889C07DB648Ec7C30E6051592c with 10000 Ether"
geth --exec 'eth.sendTransaction({from: eth.coinbase, to: "0x8Ae229198eCE3c889C07DB648Ec7C30E6051592c", value: web3.toWei(10000,"ether")})' attach http://eth:8545

# unlock bitcoin tester accounts
echo "funding deployer address 0x283d810090EdF4043E75247eAeBcE848806237fD with 10000 Ether"
Expand Down

0 comments on commit 879a87d

Please sign in to comment.