Skip to content

Commit 80538de

Browse files
committed
EEI: update call*/create return codes to signal revrt
1 parent ba9c346 commit 80538de

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
@@ -85,7 +85,7 @@ Sends a message with arbitrary date to a given address path
8585

8686
**Returns**
8787

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

9090
## callDataCopy
9191

@@ -131,7 +131,7 @@ data passed with the message call instruction or transaction.
131131

132132
**Returns**
133133

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

136136
## callDelegate
137137

@@ -149,7 +149,7 @@ persisting the current values for sender and value.
149149

150150
**Returns**
151151

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

154154
## callStatic
155155

@@ -168,7 +168,7 @@ value.
168168

169169
**Returns**
170170

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

173173
## storageStore
174174

@@ -275,7 +275,7 @@ Creates a new contract with a given value.
275275

276276
**Returns**
277277

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

280280
## getBlockDifficulty
281281

0 commit comments

Comments
 (0)