Hello all,
I have a smart contract entrypoint with signature given below:
stateful entrypoint transfer(from: address, to: address, token_id: int, data: option(string)) : unit =
However, while testing the contract using the Javascript aeSdk from my local machine, I am forced to give an input value for parameter [data] always.
example: “Sample”, “ABC” etc.
I have seen examples in aeternity tests where developers have mentioned, [{“None”;}] which is not working for me. In turn, I am getting an exception : “{“None”:”" is not a string.
Can someone please guide me in how to provide null value to an arguement which is is declared as option(string)/option(any datatype)?
Thanks in advance.