Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> bd56220265ea7e99575960a7ee81df07dc39cbe0d7abb222762db948dc0b9c7f:12:46
|
12 | self.transferToken <- collectionRef.withdraw(withdrawID: tokenID)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: unexpectedly found nil while forcing an Optional value
--> 1c7d5d603d4010e4.Sharks:89:25
|
89 | let token <- self.ownedNFTs.remove(key: withdrawID)!
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^