aboutsummaryrefslogtreecommitdiffstats
path: root/core/gaspool.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/gaspool.go')
-rw-r--r--core/gaspool.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/gaspool.go b/core/gaspool.go
index f1c64c97a..ef99908cf 100644
--- a/core/gaspool.go
+++ b/core/gaspool.go
@@ -35,7 +35,7 @@ func (gp *GasPool) AddGas(amount *big.Int) *GasPool {
func (gp *GasPool) SubGas(amount *big.Int) error {
i := (*big.Int)(gp)
if i.Cmp(amount) < 0 {
- return &GasLimitErr{Have: new(big.Int).Set(i), Want: amount}
+ return ErrGasLimitReached
}
i.Sub(i, amount)
return nil