Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: mismatched types
--> b3aa0b97234e7b86234dec20c99a310a67104d757edb079e938a3047bdb43e30:73:38
|
73 | self.sellerReceiverTokenRef = sellerAccount.capabilities.borrow<&{FungibleToken.Receiver}>(vaultData.receiverPath)
74 | ?? panic("Could not borrow receiver reference to the sellerAccount's Vault")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&{NonFungibleToken.Receiver}`, got `&{FungibleToken.Receiver}`
error: cannot find variable in this scope: `sellerReceiverTokenRef`
--> b3aa0b97234e7b86234dec20c99a310a67104d757edb079e938a3047bdb43e30:83:8
|
83 | sellerReceiverTokenRef.deposit(from: <-self.sentVault)
| ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `i`
--> b3aa0b97234e7b86234dec20c99a310a67104d757edb079e938a3047bdb43e30:85:147
|
85 | let metadata=KARAT2QMAWWSBT.Metadata(name: name, artist: artist, artistAddress: artistAddress, description: description, type: typeID, serialId: i, royalty: royalty)
| ^ not found in this scope