nearprotocol

Smart Contract in NEAR


I am working on (a smart contract in NEAR ) "nft collection where only admin can mint tokens" This is causing an error ExecutionError: "Smart contract panicked: Method mint_nft doesn't accept deposit" }, can anyone help me in this regard. #nearprotocol

help me in this regard


Solution

  • During call the function you seem to put the --deposit flag the error says that that this function does not expect that(attached near). If you want to accept payment you have to decorate the function with the #[payable] macro.