diff --git a/x/vm/keeper/grpc_query.go b/x/vm/keeper/grpc_query.go index 62efe5290..a3149998b 100644 --- a/x/vm/keeper/grpc_query.go +++ b/x/vm/keeper/grpc_query.go @@ -360,22 +360,7 @@ func (k Keeper) EstimateGasInternal(c context.Context, req *types.EthCallRequest // create a helper to check if a gas allowance results in an executable transaction executable := func(gas uint64) (vmError bool, rsp *types.MsgEthereumTxResponse, err error) { // update the message with the new gas value - msg = core.Message{ - From: msg.From, - To: msg.To, - Nonce: msg.Nonce, - Value: msg.Value, - GasLimit: gas, - GasPrice: msg.GasPrice, - GasFeeCap: msg.GasFeeCap, - GasTipCap: msg.GasTipCap, - Data: msg.Data, - AccessList: msg.AccessList, - BlobGasFeeCap: msg.BlobGasFeeCap, - BlobHashes: msg.BlobHashes, - SkipNonceChecks: msg.SkipNonceChecks, - SkipFromEOACheck: msg.SkipFromEOACheck, - } + msg.GasLimit = gas tmpCtx := ctx if fromType == types.RPC {