Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
--> 1ca65cb6f24cf05050affaddcada470bffff1eeb91ea94b8dbb59ffca5b7128b:15:10
|
15 | adminRef.openPack(packNFT :<- (collectionRef.withdraw(withdrawID: withdrawID) as! @AFLNFT.NFT), receiptAddress: receiptAddress)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: unexpectedly found nil while forcing an Optional value
--> 8f9231920da9af6d.AFLPack:117:57
|
117 | AFLNFT.mintNFT(templateInfo: templateInfo!, account: receiptAddress)
| ^