mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-19 14:29:27 +00:00
core/vm: improve error message for invalid opcodes
This commit is contained in:
parent
e7119ce12d
commit
04b668b232
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ func (in *Interpreter) Run(snapshot int, contract *Contract, input []byte) (ret
|
||||||
|
|
||||||
// if the op is invalid abort the process and return an error
|
// if the op is invalid abort the process and return an error
|
||||||
if !operation.valid {
|
if !operation.valid {
|
||||||
return nil, fmt.Errorf("invalid opcode %x", op)
|
return nil, fmt.Errorf("invalid opcode 0x%x", int(op))
|
||||||
}
|
}
|
||||||
|
|
||||||
// validate the stack and make sure there enough stack items available
|
// validate the stack and make sure there enough stack items available
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue