Skip to content

Commit cea494f

Browse files
author
Weiwu Zhang
committed
rolling back part of the change in #388
as we couldn't get the validator to work with the new <assert> statement documented here #395
1 parent 4de31c1 commit cea494f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

schema/tokenscript.xsd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@
5252
</sequence>
5353
<attribute name="custodian" type="boolean" default="false"/>
5454
<attribute name="name" type="NCName"/>
55+
<!-- commented out thanks to issue
5556
<assert test="count(ts:attribute[string(@distinct) = 'true']) le 1"/>
5657
<assert test="if(not(ts:origins)) then count(ts:attribute[string(@distinct) = 'true']) = 1 else true()"/>
58+
-->
5759
</complexType>
5860
<keyref name="typeRef" refer="ts:namedTypeName">
5961
<selector xpath=".//ts:origins/ethereum:event|.//ts:origins/ethereum:call"></selector>

0 commit comments

Comments
 (0)