internal/ethapi: include AuthorizationList in gas estimation (#33849)

Fixes an issue where AuthorizationList wasn't copied over when
estimating gas for a user-provided transaction.
This commit is contained in:
vickkkkkyy 2026-02-24 01:07:26 +08:00 committed by GitHub
parent 1d1a094d51
commit 1625064c68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -155,6 +155,7 @@ func (args *TransactionArgs) setDefaults(ctx context.Context, b Backend, config
AccessList: args.AccessList,
BlobFeeCap: args.BlobFeeCap,
BlobHashes: args.BlobHashes,
AuthorizationList: args.AuthorizationList,
}
latestBlockNr := rpc.BlockNumberOrHashWithNumber(rpc.LatestBlockNumber)
estimated, err := DoEstimateGas(ctx, b, callArgs, latestBlockNr, nil, nil, b.RPCGasCap())