Skip to content

Commit

Permalink
EEI: Add transfer() method
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Aug 22, 2018
1 parent 00768be commit 91118ba
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions eth_interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,3 +472,25 @@ Get the block’s timestamp.
**Returns**

`blockTimestamp` **i64**


## transfer

Trasfers ETH from the current account to the destination address.
When the balance of the current account is not sufficient the method ends
with a failure.

**Parameters**

- `destinationOffset` **i32ptr** the memory offset to load the destination address from (`address`)
- `valueOffset` **i32ptr** the memory offset to load the value from (`u128`)

**Returns**

`result` **i32** Returns 0 on success, 1 on failure.

**Rationale**

This method is added for compatibility with EVM1 where you can achieve the same
result by using CREATE + SELFDESTRUCT combo.

0 comments on commit 91118ba

Please sign in to comment.