Skip to content

Commit 3476dad

Browse files
committed
added method as default arg source
1 parent 35a19b3 commit 3476dad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ARCs/arc-0056.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ interface Method {
178178
* - global: The data key signifies the global state key to read the value from
179179
* - local: The data key signifies the local state key to read the value from (for the sender)
180180
* - literal: the value is a literal and should be passed directly as the argument
181+
* - method: The utf8 signature of the method in this contract to call to get the default value. If the method has arguments, they all must have default values. The method **MUST** be readonly so simulate can be used to get the default value.
181182
*/
182-
source: "box" | "global" | "local" | "literal";
183+
source: "box" | "global" | "local" | "literal" | "method";
183184
};
184185
}>;
185186
/** Information about the method's return value */

0 commit comments

Comments
 (0)