Skip to content

Commit

Permalink
Merge pull request #130 from ewasm/trap
Browse files Browse the repository at this point in the history
ECI: Document the consequences of wasm trap
  • Loading branch information
axic committed Aug 16, 2018
2 parents f2dd66f + d6243f2 commit 00768be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contract_interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@ In the [WebAssembly Javascript API](https://webassembly.org/docs/js/) however th
leaves no time for the client to acquire the memory area.

*Note:* This decision was made on WebAssembly version 0xb (pre version 1) and should be revisited.

### Traps

If execution of wasm code triggers the wasm _trap_, the contract execution is
terminated with failure and all remaining gas is consumed (OOG-like exception).
This includes execution of `unreachable` instruction.

0 comments on commit 00768be

Please sign in to comment.