Skip to content

Commit

Permalink
rolling back part of the change in SmartTokenLabs#388
Browse files Browse the repository at this point in the history
as we couldn't get the validator to work with the new <assert> statement
documented here
SmartTokenLabs#395
  • Loading branch information
Weiwu Zhang committed Oct 22, 2020
1 parent 4de31c1 commit cea494f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions schema/tokenscript.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@
</sequence>
<attribute name="custodian" type="boolean" default="false"/>
<attribute name="name" type="NCName"/>
<!-- commented out thanks to issue
<assert test="count(ts:attribute[string(@distinct) = 'true']) le 1"/>
<assert test="if(not(ts:origins)) then count(ts:attribute[string(@distinct) = 'true']) = 1 else true()"/>
-->
</complexType>
<keyref name="typeRef" refer="ts:namedTypeName">
<selector xpath=".//ts:origins/ethereum:event|.//ts:origins/ethereum:call"></selector>
Expand Down

0 comments on commit cea494f

Please sign in to comment.