Hello old fellow iron.
When I write the smart contract, I want to complete the function of domain name transfer, but I found that the following methods need to be passed in for signature. How can I call them? Again, I ask you to help me answer the following questions?
If you can, please help write the sample code
payable contract Test = payable stateful entrypoint aensTransfer(address : address) = AENS.transfer(Call.caller, address, ?????, ??????)
This is how the document describes it
AENS.transfer(owner : address, new_owner : address, name_hash : hash, <signature : signature>) : unit
Transfers name to the new owner.
The signature should be over
owner address +
Contract.address using the private key of the
owner account for signing.
indent preformatted text by 4 spaces