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`
--> 5c98415a966d36e0776fd592e65340f4a609ef2fae6b5576ab34750d468086fc:9:18
|
9 | prepare(acct: AuthAccount) {
| ^^^^^^^^^^^ not found in this scope
error: value of type `&Account` has no member `getCapability`
--> 5c98415a966d36e0776fd592e65340f4a609ef2fae6b5576ab34750d468086fc:15:62
|
15 | self.sellerPaymentReceiver = getAccount(ownerAddress).getCapability<&{FungibleToken.Receiver}>(/public/dapperUtilityCoinReceiver)
| ^^^^^^^^^^^^^ unknown member
error: value of type `&Account` has no member `getCapability`
--> 5c98415a966d36e0776fd592e65340f4a609ef2fae6b5576ab34750d468086fc:28:50
|
28 | let royaltyReceiverRef = royaltyRecipient.getCapability<&{FungibleToken.Receiver}>(/public/dapperUtilityCoinReceiver)
| ^^^^^^^^^^^^^ unknown member
error: cannot access `updateListing`: function requires `UpdateListing` authorization, but reference is unauthorized
--> 5c98415a966d36e0776fd592e65340f4a609ef2fae6b5576ab34750d468086fc:41:8
|
41 | self.storefront.updateListing(listingResourceID: listingResourceID, canPurchase: true, saleCuts: [saleCutSeller, saleCutRoyalty])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^