Skip to content

Commit 6776df6

Browse files
committed
nep-25: handle null
Signed-off-by: Roman Khimov <[email protected]>
1 parent b19ecfa commit 6776df6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

nep-25.mediawiki

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ represents all possible fields).
175175
"type": "Integer",
176176
"namedtype": "name",
177177
"length": 32,
178+
"forbidnull": true,
178179
"interface": "IIterator",
179180
"key": "Integer",
180181
"value": {},
@@ -206,6 +207,13 @@ byte length of an integer/byte array/string or number of array elements.
206207
Any of these lengths MUST NOT exceed NeoVM limitations that are relevant for
207208
the current version of it. Length 0 means "unlimited".
208209

210+
<code>forbidnull</code> is an optional field that can be used for <code>Hash160</code>,
211+
<code>Hash256</code>, <code>ByteArray</code>, <code>String</code>, <code>Array</code>,
212+
<code>Map</code> or <code>InteropInterface</code> types and MUST NOT be used
213+
for other types. It allows to specify that the method accepts or event emits
214+
only non-null values for this field. The default (if not specified) is "false",
215+
meaning that null can be used.
216+
209217
<code>interface</code> is only used in conjuction with the
210218
<code>InteropInterface</code> <code>type</code> and MUST NOT be used for other
211219
types, when used it specifies which interop interface is used. The only valid
@@ -266,6 +274,7 @@ map parameters, returning an iterator with structured element type.
266274
"namedtype" : "package.Structure"
267275
},
268276
"type" : "InteropInterface",
277+
"forbidnull" : true,
269278
"interface" : "IIterator"
270279
},
271280
"name" : "m",

0 commit comments

Comments
 (0)