Skip to content

Commit 00768be

Browse files
authored
Merge pull request #130 from ewasm/trap
ECI: Document the consequences of wasm trap
2 parents f2dd66f + d6243f2 commit 00768be

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contract_interface.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,9 @@ In the [WebAssembly Javascript API](https://webassembly.org/docs/js/) however th
5151
leaves no time for the client to acquire the memory area.
5252

5353
*Note:* This decision was made on WebAssembly version 0xb (pre version 1) and should be revisited.
54+
55+
### Traps
56+
57+
If execution of wasm code triggers the wasm _trap_, the contract execution is
58+
terminated with failure and all remaining gas is consumed (OOG-like exception).
59+
This includes execution of `unreachable` instruction.

0 commit comments

Comments
 (0)