Skip to content

Commit

Permalink
nep-25: handle null
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Khimov <[email protected]>
  • Loading branch information
roman-khimov committed Aug 12, 2024
1 parent b19ecfa commit 6776df6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nep-25.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ represents all possible fields).
"type": "Integer",
"namedtype": "name",
"length": 32,
"forbidnull": true,
"interface": "IIterator",
"key": "Integer",
"value": {},
Expand Down Expand Up @@ -206,6 +207,13 @@ byte length of an integer/byte array/string or number of array elements.
Any of these lengths MUST NOT exceed NeoVM limitations that are relevant for
the current version of it. Length 0 means "unlimited".

<code>forbidnull</code> is an optional field that can be used for <code>Hash160</code>,
<code>Hash256</code>, <code>ByteArray</code>, <code>String</code>, <code>Array</code>,
<code>Map</code> or <code>InteropInterface</code> types and MUST NOT be used
for other types. It allows to specify that the method accepts or event emits
only non-null values for this field. The default (if not specified) is "false",
meaning that null can be used.

<code>interface</code> is only used in conjuction with the
<code>InteropInterface</code> <code>type</code> and MUST NOT be used for other
types, when used it specifies which interop interface is used. The only valid
Expand Down Expand Up @@ -266,6 +274,7 @@ map parameters, returning an iterator with structured element type.
"namedtype" : "package.Structure"
},
"type" : "InteropInterface",
"forbidnull" : true,
"interface" : "IIterator"
},
"name" : "m",
Expand Down

0 comments on commit 6776df6

Please sign in to comment.