Skip to content

Commit bfa2f05

Browse files
yihuangAlex | Interchain Labs
andauthored
fix: estimate gas missing fields for new tx type (cosmos#316)
Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
1 parent 5024129 commit bfa2f05

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

x/vm/keeper/grpc_query.go

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -360,22 +360,7 @@ func (k Keeper) EstimateGasInternal(c context.Context, req *types.EthCallRequest
360360
// create a helper to check if a gas allowance results in an executable transaction
361361
executable := func(gas uint64) (vmError bool, rsp *types.MsgEthereumTxResponse, err error) {
362362
// update the message with the new gas value
363-
msg = core.Message{
364-
From: msg.From,
365-
To: msg.To,
366-
Nonce: msg.Nonce,
367-
Value: msg.Value,
368-
GasLimit: gas,
369-
GasPrice: msg.GasPrice,
370-
GasFeeCap: msg.GasFeeCap,
371-
GasTipCap: msg.GasTipCap,
372-
Data: msg.Data,
373-
AccessList: msg.AccessList,
374-
BlobGasFeeCap: msg.BlobGasFeeCap,
375-
BlobHashes: msg.BlobHashes,
376-
SkipNonceChecks: msg.SkipNonceChecks,
377-
SkipFromEOACheck: msg.SkipFromEOACheck,
378-
}
363+
msg.GasLimit = gas
379364

380365
tmpCtx := ctx
381366
if fromType == types.RPC {

0 commit comments

Comments
 (0)