CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 358cc5e6a0fecb30fe6440e8703dbe4b4d34f5e7bd17fe8650dd0c7ff35a2f2f:126:52
|
126 | let leftProposedNfts: [Swap.ProposedTradeAsset] = mapNfts(ownerAddress: signer.address, leftUserNfts)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> 358cc5e6a0fecb30fe6440e8703dbe4b4d34f5e7bd17fe8650dd0c7ff35a2f2f:52:3
|
52 | inputNfts.forEachKey(fun (key: String): Bool {
53 |
54 | for nftID in inputNfts[key]! {
55 |
56 | proposedNfts.append(Swap.ProposedTradeAsset(
57 | nftID: nftID,
58 | type: key,
59 | collectionData: leftCollectionDataMap[key] ?? rightCollectionDataMap[key] ?? panic("no collection data for: ".concat(key))
60 | ))
61 | }
62 |
63 | return true
64 | })
| ^^
error: panic: no collection data for: A.0b2a3299cc857e29.TopShot.NFT
--> 358cc5e6a0fecb30fe6440e8703dbe4b4d34f5e7bd17fe8650dd0c7ff35a2f2f:59:83
|
59 | collectionData: leftCollectionDataMap[key] ?? rightCollectionDataMap[key] ?? panic("no collection data for: ".concat(key))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Arguments:
rightUserAddress:
0x766a846221f97151
A.0b2a3299cc857e29.TopShot.NFT:
[21380981,44501106,2...7,45150878,43107902]
A.e4cf4bdc1751c65d.AllDay.NFT:
[5280321,5142223]