From c740259e7434a35146f6fe3111ca23aaef561442 Mon Sep 17 00:00:00 2001 From: lalexgap Date: Tue, 10 Oct 2023 18:31:45 -0700 Subject: [PATCH] try paymaster --- internal/chain/chain.go | 1 + node/engine/chainservice/eth_chainservice.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/chain/chain.go b/internal/chain/chain.go index 169e87ba1..f635e4ecb 100644 --- a/internal/chain/chain.go +++ b/internal/chain/chain.go @@ -56,6 +56,7 @@ func DeployContracts(ctx context.Context, chainUrl, chainAuthToken, chainPk stri return types.Address{}, types.Address{}, types.Address{}, err } transferEth(ethClient, txSubmitter, na, big.NewInt(1000000000000000000)) + transferEth(ethClient, txSubmitter, common.HexToAddress("0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"), big.NewInt(1000000000000000000)) return } diff --git a/node/engine/chainservice/eth_chainservice.go b/node/engine/chainservice/eth_chainservice.go index 170f7d248..ed8157a08 100644 --- a/node/engine/chainservice/eth_chainservice.go +++ b/node/engine/chainservice/eth_chainservice.go @@ -291,7 +291,7 @@ func (ecs *EthChainService) SendTransaction(tx protocols.ChainTransaction) error PreVerificationGas: big.NewInt(0xae7c), MaxFeePerGas: big.NewInt(0x5a58b812), MaxPriorityFeePerGas: big.NewInt(0x59682f00), - PaymasterAndData: []byte{}, + PaymasterAndData: common.Hex2Bytes("0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"), } const entrypointAddress = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"