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: `AuthAccount`
--> 692ed91e7631d16da90cf4f0cb133c8f5f6a212e4ca2610ad1d2f018f7ec0013:14:20
|
14 | prepare(signer: AuthAccount) {
| ^^^^^^^^^^^ not found in this scope
error: value of type `&Account` has no member `getCapability`
--> 692ed91e7631d16da90cf4f0cb133c8f5f6a212e4ca2610ad1d2f018f7ec0013:25:13
|
25 | .getCapability(ExampleNFT.CollectionPublicPath)
| ^^^^^^^^^^^^^ unknown member
error: cannot access `withdraw`: function requires `Withdraw` authorization, but reference is unauthorized
--> 692ed91e7631d16da90cf4f0cb133c8f5f6a212e4ca2610ad1d2f018f7ec0013:34:19
|
34 | let nft <- self.withdrawRef.withdraw(withdrawID: withdrawID)
| ^^^^^^^^^^^^^^^^^^^^^^^^^