Skip to content

Commit 1a2baf0

Browse files
authored
fix: consider floor gas in eth_estimateGas (#1225)
1 parent ef17a69 commit 1a2baf0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

accounts/abi/bind/backends/simulated.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ func (b *SimulatedBackend) EstimateGas(ctx context.Context, call ethereum.CallMs
538538
b.pendingState.RevertToSnapshot(snapshot)
539539

540540
if err != nil {
541-
if errors.Is(err, core.ErrIntrinsicGas) {
541+
if errors.Is(err, core.ErrIntrinsicGas) || errors.Is(err, core.ErrFloorDataGas) {
542542
return true, nil, nil // Special case, raise gas limit
543543
}
544544
return true, nil, err // Bail out

internal/ethapi/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ func DoEstimateGas(ctx context.Context, b Backend, args TransactionArgs, blockNr
11991199

12001200
result, err := DoCall(ctx, b, args, blockNrOrHash, nil, 0, gasCap)
12011201
if err != nil {
1202-
if errors.Is(err, core.ErrIntrinsicGas) {
1202+
if errors.Is(err, core.ErrIntrinsicGas) || errors.Is(err, core.ErrFloorDataGas) {
12031203
return true, nil, nil // Special case, raise gas limit
12041204
}
12051205
return true, nil, err // Bail out

params/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
const (
2525
VersionMajor = 5 // Major version component of the current release
2626
VersionMinor = 8 // Minor version component of the current release
27-
VersionPatch = 72 // Patch version component of the current release
27+
VersionPatch = 73 // Patch version component of the current release
2828
VersionMeta = "mainnet" // Version metadata to append to the version string
2929
)
3030

0 commit comments

Comments
 (0)