Get error: "panic: could not borrow minter reference"

I am a newer for cadence.

I follow the NFT document, and test in [playgroudd](Flow Playground.

I deployed the two smart contracts, and setuped the account. When I want to minter the NFT, It failed:

I guess I should setup the account 2, But I donโ€™t how to change account from 0x01 to 0x02, the signature is always created by 0x01

Is any one here? Help me Plz, Thx

You can change the signer when you click the 0x01 icon in the transaction signer box. 0x01 will disappear when you click it, and you can click and assign another signer. Your error occurred because your NFT contract is deployed in 0x02 (on line 3) but the transaction signer is 0x01. (You could not borrow mint ref because itโ€™s in 0x02 but your signer is 0x01) Only admin account who deployed NFT contract could authorize mint transaction. Setup transaction is just a step for receiving tokens, not for minting.

1 Like

Yes, I get it. Thank you very much!

1 Like