aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/gas.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/vm/gas.go')
-rw-r--r--core/vm/gas.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/vm/gas.go b/core/vm/gas.go
index dba1b3a02..022a84f24 100644
--- a/core/vm/gas.go
+++ b/core/vm/gas.go
@@ -43,11 +43,11 @@ func callGas(gasTable params.GasTable, availableGas, base uint64, callCost *big.
// If the bit length exceeds 64 bit we know that the newly calculated "gas" for EIP150
// is smaller than the requested amount. Therefor we return the new gas instead
// of returning an error.
- if callCost.BitLen() > 64 || gas < callCost.Uint64() {
+ if !callCost.IsUint64() || gas < callCost.Uint64() {
return gas, nil
}
}
- if callCost.BitLen() > 64 {
+ if !callCost.IsUint64() {
return 0, errGasUintOverflow
}