TokenScript
TokenScript copied to clipboard
There needs to be a void type for as=
Many functions have no return values.
Why a function with no return values appear in <attribute-type>?
Why a function with no return values appear in
<attribute-type>?
I suppose you can simply leave out the as value but it is strange then, see below:
<ts:transaction> <ts:ethereum function="renew" contract="ETHRegistrarController" as="uint"> <ts:value ref="renewalPricePerYear"/> <ts:data> <ts:string ref="ensName"/> <ts:uint256>31556952</ts:uint256> </ts:data> </ts:ethereum> </ts:transaction>
Thanks. Will add that.