From a25b5b44d313a9ebf59120db4e632f5bd7dffc57 Mon Sep 17 00:00:00 2001 From: Stefan Iliev <46542846+StefanIliev545@users.noreply.github.com> Date: Wed, 18 Oct 2023 12:44:09 +0300 Subject: [PATCH] Fix for estimate gas failing when gasPrice included. (#1610) * Minimal proxy deployment. * Fix for geth encoding doing wrong stuff. * Revert "Minimal proxy deployment." This reverts commit 3d15da0b9e42ee2eebb47e4c680d36e2ebec3504. --------- Co-authored-by: StefanIliev545 --- go/common/gethencoding/geth_encoding.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/common/gethencoding/geth_encoding.go b/go/common/gethencoding/geth_encoding.go index 9a414a6cfb..fe0d04204c 100644 --- a/go/common/gethencoding/geth_encoding.go +++ b/go/common/gethencoding/geth_encoding.go @@ -185,11 +185,11 @@ func ExtractEthCall(param interface{}) (*gethapi.TransactionArgs, error) { gas = (*hexutil.Uint64)(&gasVal) case callFieldGasPrice: - valueVal, err := hexutil.DecodeBig(valString) + gasPriceVal, err := hexutil.DecodeBig(valString) if err != nil { return nil, fmt.Errorf("could not decode value in CallMsg - %w", err) } - value = (*hexutil.Big)(valueVal) + gasPrice = (*hexutil.Big)(gasPriceVal) case callFieldMaxFeePerGas: maxFeePerGasVal, err := hexutil.DecodeBig(valString)