Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction invocation failed when executing transaction: [Error Code: 1101] cadence runtime error: Execution failed:
error: cannot find variable in this scope: `account`
--> 31847cf4a41bf0cf76130945cee3c3f94aa21bf8d752404043ad993e6d645deb:5:46
|
5 | if let storefrontRef = getAccount(account).getCapability<&NFTStorefront.Storefront{NFTStorefront.StorefrontPublic}>(NFTStorefront.StorefrontPublicPath).borrow() {
| ^^^^^^^ not found in this scope
error: mismatched types
--> 31847cf4a41bf0cf76130945cee3c3f94aa21bf8d752404043ad993e6d645deb:6:54
|
6 | if let listingResourceIDs: [UInt64] = storefrontRef.getListingIDs() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `optional`, got `[UInt64]`
error: value of type `Transaction` has no member `storefront`
--> 31847cf4a41bf0cf76130945cee3c3f94aa21bf8d752404043ad993e6d645deb:8:29
|
8 | self.storefront.removeListing(listingResourceID: listingResourceID)
| ^^^^^^^^^^ unknown member