Skip to content

Commit

Permalink
core/vm: Remove panic added for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Nov 29, 2021
1 parent 9109c82 commit ec03d0b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/vm/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ func (in *EVMInterpreter) Run(contract *Contract, input []byte, readOnly bool) (
// Make sure the readOnly is only set if we aren't in readOnly yet.
// This also makes sure that the readOnly flag isn't removed for child calls.
if readOnly && !in.readOnly {
if !in.evm.chainRules.IsByzantium {
panic("readOnly execution requested on wrong chainRules")
}
in.readOnly = true
defer func() { in.readOnly = false }()
}
Expand Down

0 comments on commit ec03d0b

Please sign in to comment.