SmartTokenLabs / TokenScript

TokenScript schema, specs and paper
http://tokenscript.org
MIT License
242 stars 71 forks source link

missing multiple keyrefs constraints #396

Open SmartLayer opened 3 years ago

SmartLayer commented 3 years ago
  1. contract name keyref is not set up.
darakhbharat commented 3 years ago

Below are the list of possible elements where "contract" attribute occurs. Now need to update the schema to check if its respective <ts:contract name="" .../> element should occur in XML.

<ts:ethereum contract="unicon"/>
<ethereum:call function="redeemed" contract="unicon" as="bool">
<ethereum:transaction function="setText" contract="PublicResolver" as="bool">
<ethereum:event type="NameRegistered" contract="ETHRegistrarController" filter="label=${tokenId}" select="name"/>
darakhbharat commented 3 years ago
  1. contract name keyref is not set up. This is completed and tested with changes - https://github.com/darakhbharat/TokenScript/commit/38a09be60023b2262f540ec7abad977248cca294

Added ts:contract/@name reference check for above mentioned elements.

We can directly merge this changes to master as these works on schema 1.0 and are independent of XSD 1.1 validation.