Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bindings/go/evmc/evmc.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ func (err Error) Error() string {
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_INSUFFICIENT_BALANCE:
return "evmc: insufficient balance"
case C.EVMC_REJECTED:
return "evmc: rejected"
}
Expand Down
3 changes: 3 additions & 0 deletions include/evmc/evmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ enum evmc_status_code
*/
EVMC_WASM_TRAP = 16,

/** The caller does not have enough funds for value transfer. */
EVMC_INSUFFICIENT_BALANCE = 17,

/** EVM implementation generic internal error. */
EVMC_INTERNAL_ERROR = -1,

Expand Down
3 changes: 3 additions & 0 deletions tools/evmc/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ std::ostream& operator<<(std::ostream& os, evmc_status_code status_code)
case EVMC_WASM_TRAP:
s = "wasm trap";
break;
case EVMC_INSUFFICIENT_BALANCE:
s = "insufficient balance";
break;
case EVMC_INTERNAL_ERROR:
s = "internal error";
break;
Expand Down