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`
--> b3a6202b1f4ec5b5f6f55437676853bc930c55935f5086cefc7aa3120eba060d:9:18
|
9 | prepare(acct: AuthAccount) {
| ^^^^^^^^^^^ not found in this scope
error: value of type `&Account` has no member `getCapability`
--> b3a6202b1f4ec5b5f6f55437676853bc930c55935f5086cefc7aa3120eba060d:15:62
|
15 | self.sellerPaymentReceiver = getAccount(ownerAddress).getCapability<&{FungibleToken.Receiver}>(/public/dapperUtilityCoinReceiver)
| ^^^^^^^^^^^^^ unknown member
error: value of type `&Account` has no member `getCapability`
--> b3a6202b1f4ec5b5f6f55437676853bc930c55935f5086cefc7aa3120eba060d: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
--> b3a6202b1f4ec5b5f6f55437676853bc930c55935f5086cefc7aa3120eba060d:41:8
|
41 | self.storefront.updateListing(listingResourceID: listingResourceID, canPurchase: true, saleCuts: [saleCutSeller, saleCutRoyalty])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^