Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> b538ffda1d2dda4406c0c3ba3122ff67279a93349dbf71c06a29d37178cf4794:42:19
|
42 | let nft <- pool.unstake(userCertificateCap: userCertificateCap, tokenId: nftId)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: pre-condition failed: [IncStakingErrorMsg:Unstake: nonexistent tokenId in staked Collection][IncStakingErrorCode:12]
--> 1b77ba4b414de352.StakingNFT:663:8
|
663 | self.stakingNFTCollection.getIDs().contains(tokenId): StakingError.errorEncode(msg: "Unstake: nonexistent tokenId in staked Collection", err: StakingError.ErrorCode.NOT_FOUND)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^