Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
qianbin committed Mar 8, 2019
1 parent 469ae8d commit 6eb904c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -959,9 +959,11 @@ origin
### Thor.Decoded
`Decoded` is a mixed object that produced by `ABI.decode` with the ABI definition of `EVENT` or `METHOD`.Decoded will be present only at the ABI definition is provided.
`Decoded` is a mixed object that produced by `ABI.decode` with the ABI definition of `EVENT` or `METHOD`. Decoded will be present only at the ABI definition is provided.
+ `__length__` - `number(optional)`: Count of decoded properties, not available when method call reverted
+ `string` - `any`: Decoded property based on the ABI
+ `revertReason` - `string(optional)`: Reason message when method call reverted. It's usually the second argument of `require` statement in Solidity, and helpful to diagnose contract code.
For example if a method's definition is `function name() public pure returns(string name)` after perform the simulate call `decoded` will be like following:

Expand Down

0 comments on commit 6eb904c

Please sign in to comment.