Skip to content

Commit 9dc5118

Browse files
authored
Merge pull request #77 from ewasm/call-returncode
EEI: update call*/create return codes to signal revrt
2 parents b543228 + 80538de commit 9dc5118

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

eth_interface.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Sends a message with arbitrary date to a given address path
8383

8484
**Returns**
8585

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

8888
## callDataCopy
8989

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

128128
**Returns**
129129

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

132132
## callDelegate
133133

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

144144
**Returns**
145145

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

148148
## callStatic
149149

@@ -160,7 +160,7 @@ value.
160160

161161
**Returns**
162162

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

165165
## storageStore
166166

@@ -267,7 +267,7 @@ Creates a new contract with a given value.
267267

268268
**Returns**
269269

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

272272
## getBlockDifficulty
273273

0 commit comments

Comments
 (0)