Skip to content

Commit

Permalink
Merge pull request #77 from ewasm/call-returncode
Browse files Browse the repository at this point in the history
EEI: update call*/create return codes to signal revrt
  • Loading branch information
axic committed Jan 22, 2018
2 parents b543228 + 80538de commit 9dc5118
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions eth_interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Sends a message with arbitrary date to a given address path

**Returns**

`result` **i32** Returns 1 or 0 depending on if the VM trapped on the message or not
`result` **i32** Returns 0 on success, 1 on failure and 2 on `revert`

## callDataCopy

Expand Down Expand Up @@ -127,7 +127,7 @@ data passed with the message call instruction or transaction.

**Returns**

`result` **i32** Returns 1 or 0 depending on if the VM trapped on the message or not
`result` **i32** Returns 0 on success, 1 on failure and 2 on `revert`

## callDelegate

Expand All @@ -143,7 +143,7 @@ persisting the current values for sender and value.

**Returns**

`result` **i32** Returns 1 or 0 depending on if the VM trapped on the message or not
`result` **i32** Returns 0 on success, 1 on failure and 2 on `revert`

## callStatic

Expand All @@ -160,7 +160,7 @@ value.

**Returns**

`result` **i32** Returns 1 or 0 depending on if the VM trapped on the message or not
`result` **i32** Returns 0 on success, 1 on failure and 2 on `revert`

## storageStore

Expand Down Expand Up @@ -267,7 +267,7 @@ Creates a new contract with a given value.

**Returns**

`result` **i32** Returns 1 or 0 depending on if the VM trapped on the message or not
`result` **i32** Returns 0 on success, 1 on failure and 2 on `revert`

## getBlockDifficulty

Expand Down

0 comments on commit 9dc5118

Please sign in to comment.