Flow price: --
0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292

Transaction

Hash: 0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292
error
Error

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: mismatched types
  --> 0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292:58:66
   |
58 |     self.oldMarketplaceSaleCollectionRef = account.storage.borrow<auth(AFLMarketplace.Owner) &AFLMarketplace.SaleCollection?>(from: /storage/AFLSaleCollection)
   |                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&Any`, got `auth(AFLMarketplace.Owner) &AFLMarketplace.SaleCollection?`

error: mismatched types
  --> 0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292:58:43
   |
58 |     self.oldMarketplaceSaleCollectionRef = account.storage.borrow<auth(AFLMarketplace.Owner) &AFLMarketplace.SaleCollection?>(from: /storage/AFLSaleCollection)
   |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `auth(AFLMarketplace.Owner) &AFLMarketplace.SaleCollection?`, got `auth(AFLMarketplace.Owner) &AFLMarketplace.SaleCollection??`

error: mismatched types
  --> 0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292:59:66
   |
59 |     self.newMarketplaceSaleCollectionRef = account.storage.borrow<auth(AFLMarketplaceV2.Owner) &AFLMarketplaceV2.SaleCollection?>(from: /storage/AFLSaleCollection2)
   |                                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&Any`, got `auth(AFLMarketplaceV2.Owner) &AFLMarketplaceV2.SaleCollection?`

error: mismatched types
  --> 0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292:59:43
   |
59 |     self.newMarketplaceSaleCollectionRef = account.storage.borrow<auth(AFLMarketplaceV2.Owner) &AFLMarketplaceV2.SaleCollection?>(from: /storage/AFLSaleCollection2)
   |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `auth(AFLMarketplaceV2.Owner) &AFLMarketplaceV2.SaleCollection?`, got `auth(AFLMarketplaceV2.Owner) &AFLMarketplaceV2.SaleCollection??`

error: cannot find variable in this scope: `account`
  --> 0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292:75:23
   |
75 |             destroy <- account.storage.load<@AnyResource>(from: /storage/AFLSaleCollection2)
   |                        ^^^^^^^ not found in this scope

error: cannot find variable in this scope: `account`
  --> 0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292:76:12
   |
76 |             account.capabilities.unpublish(/public/AFLSaleCollection)
   |             ^^^^^^^ not found in this scope

error: value of type `auth(AFLMarketplace.Owner) &AFLMarketplace.SaleCollection?` has no member `getIDs`
  --> 0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292:82:57
   |
82 |       let oldsIds = self.oldMarketplaceSaleCollectionRef.getIDs().slice(from: 0, upTo: self.oldMarketplaceSaleCollectionRef.getIDs().length < TRANSFER_LIMIT ? self.oldMarketplaceSaleCollectionRef.getIDs().length : TRANSFER_LIMIT);
   |                                                          ^^^^^^ type is optional, consider optional-chaining: ?.getIDs

error: value of type `auth(AFLMarketplace.Owner) &AFLMarketplace.SaleCollection?` has no member `getIDs`
  --> 0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292:82:124
   |
82 |       let oldsIds = self.oldMarketplaceSaleCollectionRef.getIDs().slice(from: 0, upTo: self.oldMarketplaceSaleCollectionRef.getIDs().length < TRANSFER_LIMIT ? self.oldMarketplaceSaleCollectionRef.getIDs().length : TRANSFER_LIMIT);
   |                                                                                                                             ^^^^^^ type is optional, consider optional-chaining: ?.getIDs

error: value of type `auth(AFLMarketplace.Owner) &AFLMarketplace.SaleCollection?` has no member `getIDs`
  --> 0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292:82:196
   |
82 |       let oldsIds = self.oldMarketplaceSaleCollectionRef.getIDs().slice(from: 0, upTo: self.oldMarketplaceSaleCollectionRef.getIDs().length < TRANSFER_LIMIT ? self.oldMarketplaceSaleCollectionRef.getIDs().length : TRANSFER_LIMIT);
   |                                                                                                                                                                                                     ^^^^^^ type is optional, consider optional-chaining: ?.getIDs

error: cannot infer type: requires an explicit type annotation
  --> 0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292:82:87
   |
82 |       let oldsIds = self.oldMarketplaceSaleCollectionRef.getIDs().slice(from: 0, upTo: self.oldMarketplaceSaleCollectionRef.getIDs().length < TRANSFER_LIMIT ? self.oldMarketplaceSaleCollectionRef.getIDs().length : TRANSFER_LIMIT);
   |                                                                                        ^

error: value of type `auth(AFLMarketplace.Owner) &AFLMarketplace.SaleCollection?` has no member `getPrice`
  --> 0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292:84:67
   |
84 |           let price: UFix64 = self.oldMarketplaceSaleCollectionRef.getPrice(tokenID: tokenID)!
   |                                                                    ^^^^^^^^ type is optional, consider optional-chaining: ?.getPrice

error: value of type `auth(AFLMarketplace.Owner) &AFLMarketplace.SaleCollection?` has no member `withdraw`
  --> 0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292:85:73
   |
85 |           let token: @AFLNFT.NFT <- self.oldMarketplaceSaleCollectionRef.withdraw(tokenID: tokenID)
   |                                                                          ^^^^^^^^ type is optional, consider optional-chaining: ?.withdraw

error: value of type `auth(AFLMarketplace.Owner) &AFLMarketplace.SaleCollection?` has no member `getIDs`
  --> 0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292:88:47
   |
88 |       if (self.oldMarketplaceSaleCollectionRef.getIDs().length == 0) {
   |                                                ^^^^^^ type is optional, consider optional-chaining: ?.getIDs

error: cannot find variable in this scope: `account`
  --> 0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292:89:21
   |
89 |           destroy <- account.storage.load<@AnyResource>(from: /storage/AFLSaleCollection)
   |                      ^^^^^^^ not found in this scope

error: cannot find variable in this scope: `account`
  --> 0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292:90:10
   |
90 |           account.capabilities.unpublish(/public/AFLSaleCollection)
   |           ^^^^^^^ not found in this scope


Hash:
0fa9348bd97239fac150b8bdb0faec6930aa70c4d176893f0901d55115192292
Status:
ERROR
Block height:
88496193
Block id:
537d9fc9e63777abba6f44830164b63cb709d705bad0ab127bfa92901d10e292
Timestamp:
Saturday 28 September 2024 at 07:34:37 UTC
()
Proposer:
Authorizers: