khubaib Ishtiaq
khubaib Ishtiaq

Reputation: 21

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

Upvotes: 1

Views: 97

Answers (1)

khubaib Ishtiaq
khubaib Ishtiaq

Reputation: 21

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.

Upvotes: 1

Related Questions