TokenScript icon indicating copy to clipboard operation
TokenScript copied to clipboard

There needs to be a void type for as=

Open JamesANZ opened this issue 5 years ago • 3 comments

Many functions have no return values.

JamesANZ avatar Apr 17 '20 04:04 JamesANZ

Why a function with no return values appear in <attribute-type>?

SmartLayer avatar Apr 17 '20 08:04 SmartLayer

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>

JamesANZ avatar Apr 18 '20 01:04 JamesANZ

Thanks. Will add that.

SmartLayer avatar Apr 20 '20 06:04 SmartLayer