From 89edc1e7697a4b201c9a4ca782508183c91fc0e3 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 20 Aug 2018 15:37:33 +0100 Subject: [PATCH] Go bindings: add missing error codes --- bindings/go/evmc/evmc.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bindings/go/evmc/evmc.go b/bindings/go/evmc/evmc.go index 1da8cfb..62a0b2c 100644 --- a/bindings/go/evmc/evmc.go +++ b/bindings/go/evmc/evmc.go @@ -110,6 +110,12 @@ func (err Error) Error() string { return "evmc: precompile failure" case C.EVMC_CONTRACT_VALIDATION_FAILURE: return "evmc: contract validation failure" + case C.EVMC_ARGUMENT_OUT_OF_RANGE: + return "evmc: argument out of range" + case C.EVMC_WASM_UNREACHABLE_INSTRUCTION: + return "evmc: the WebAssembly unreachable instruction has been hit during execution" + case C.EVMC_WASM_TRAP: + return "evmc: a WebAssembly trap has been hit during execution" case C.EVMC_INTERNAL_ERROR: return "evmc: internal error" case C.EVMC_REJECTED: