Skip to content

Commit 04b668b

Browse files
wuestholzobscuren
authored andcommitted
core/vm: improve error message for invalid opcodes
1 parent e7119ce commit 04b668b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core/vm/interpreter.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func (in *Interpreter) Run(snapshot int, contract *Contract, input []byte) (ret
151151

152152
// if the op is invalid abort the process and return an error
153153
if !operation.valid {
154-
return nil, fmt.Errorf("invalid opcode %x", op)
154+
return nil, fmt.Errorf("invalid opcode 0x%x", int(op))
155155
}
156156

157157
// validate the stack and make sure there enough stack items available

0 commit comments

Comments
 (0)