From 6eb904c09255877bf6ef0c31c453b762a61ac063 Mon Sep 17 00:00:00 2001 From: qianbin Date: Fri, 8 Mar 2019 11:24:07 +0800 Subject: [PATCH] update doc --- docs/api.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index 3087155..d984e95 100644 --- a/docs/api.md +++ b/docs/api.md @@ -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: