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:
--> bfa2fda4b69fc5c5cc3b5254401c71f8522c805e5daec95f068ed28ff8a93cf9:82:30
|
82 | let royaltySaleCuts = Royalties.getRoyaltySaleCutsForStorefrontV2(
83 | nft: nft,
84 | salePrice: saleItemPrice,
85 | ftReceiverPath: ftReceiverPath,
86 | receiverAddressOverrides: []
87 | )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> 9212a87501a8a6a2.Royalties:162:24
|
162 | let royalties = self.getNFTRoyalties(nft: nft, ftReceiverPath: ftReceiverPath, receiverAddressOverrides: receiverAddressOverrides)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: failed to force-cast value: expected type `MetadataViews.Royalties`, got `[AnyStruct]`
--> 9212a87501a8a6a2.Royalties:114:37
|
114 | let metadataRoyalties = (royaltiesRef as! MetadataViews.Royalties).getRoyalties()
| ^^^^^^^^^^^^