- I implement smart contracts with ink!, substrate's WASM smart contract implementation language.
- At that time, I decided to use the openbrush library. openbrush is like openzeppelin in EVM.
- The smart contract was easy to implement according to the official website. [https://docs.openbrush.io/]
- But I couldn't figure out how to call it from the front end.
- I was able to solve it by looking at Telegram, but I will write this in the hope that it will help others.
A function defined in openbrush is declared like this:
psp34::transfer (to: TransferInput1, id: TransferInput2, data: TransferInput3)
psp34::ownerOf (id: OwnerOfInput1): Option<AccountId>