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: cannot find type in this scope: `FungibleToken`
--> 340bc886547242046649dd9e9eda52f0f2ba09b138d1f5e353124010d8ec8588:28:46
|
28 | let providerCap = cap as! Capability<auth(FungibleToken.Withdraw) &{NonFungibleToken.Provider}>
| ^^^^^^^^^^^^^ not found in this scope
error: cannot access `withdraw`: function requires `Withdraw` authorization, but reference only has `FungibleToken` authorization
--> 340bc886547242046649dd9e9eda52f0f2ba09b138d1f5e353124010d8ec8588:35:15
|
35 | let nft <- collectionRef.withdraw(tokenID: id)
| ^^^^^^^^^^^^^^^^^^^^^^
error: incorrect argument label
--> 340bc886547242046649dd9e9eda52f0f2ba09b138d1f5e353124010d8ec8588:35:38
|
35 | let nft <- collectionRef.withdraw(tokenID: id)
| ^^^^^^^^ expected `withdrawID`, got `tokenID`