good morning!!!!

Skip to content
Snippets Groups Projects
Commit 04b668b2 authored by Valentin Wüstholz's avatar Valentin Wüstholz Committed by Jeffrey Wilcke
Browse files

core/vm: improve error message for invalid opcodes

parent e7119ce1
No related branches found
No related tags found
No related merge requests found
......@@ -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 !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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment