diff --git a/core/state/statedb.go b/core/state/statedb.go index 03e118d117ecff013eafea622097aeef3c55c8c4..085f2379fbed647e2e963df0fb0b2cfeb01e8293 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -204,7 +204,7 @@ func (s *StateDB) AddRefund(gas uint64) { func (s *StateDB) SubRefund(gas uint64) { s.journal.append(refundChange{prev: s.refund}) if gas > s.refund { - panic("Refund counter below zero") + panic(fmt.Sprintf("Refund counter below zero (gas: %d > refund: %d)", gas, s.refund)) } s.refund -= gas }