Skip to content

Commit

Permalink
improve panic message
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-bousfield committed Mar 15, 2023
1 parent 0f0de0b commit c39800e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
package vm

import (
"fmt"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/params"
)
Expand Down Expand Up @@ -49,7 +51,7 @@ func WasmStateStoreCost(db StateDB, program common.Address, key, value common.Ha
// If the caller cannot afford the cost, this change will be rolled back
db.AddSlotToAccessList(program, key)
if !addrPresent {
panic("impossible case: address was not present in access list")
panic(fmt.Sprintf("impossible case: address %v was not present in access list", program))
}
}

Expand Down

0 comments on commit c39800e

Please sign in to comment.