Skip to content

Commit

Permalink
Merge pull request #37 from vechain/types
Browse files Browse the repository at this point in the history
update doc
  • Loading branch information
qianbin committed Mar 8, 2019
2 parents 5ebf268 + 6eb904c commit 485a4f0
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 485a4f0

Please sign in to comment.