Flow price: --
71af3045e3b2acdfdaef1de0d3e8f703af92acf18533127050f1107ba06eb985

Transaction

Hash: 71af3045e3b2acdfdaef1de0d3e8f703af92acf18533127050f1107ba06eb985
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
  --> 71af3045e3b2acdfdaef1de0d3e8f703af92acf18533127050f1107ba06eb985: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
  --> 71af3045e3b2acdfdaef1de0d3e8f703af92acf18533127050f1107ba06eb985: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
  --> 71af3045e3b2acdfdaef1de0d3e8f703af92acf18533127050f1107ba06eb985: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
  --> 71af3045e3b2acdfdaef1de0d3e8f703af92acf18533127050f1107ba06eb985: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`
  --> 71af3045e3b2acdfdaef1de0d3e8f703af92acf18533127050f1107ba06eb985:75:23
   |
75 |             destroy <- account.storage.load<@AnyResource>(from: /storage/AFLSaleCollection2)
   |                        ^^^^^^^ not found in this scope

error: cannot find variable in this scope: `account`
  --> 71af3045e3b2acdfdaef1de0d3e8f703af92acf18533127050f1107ba06eb985: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`
  --> 71af3045e3b2acdfdaef1de0d3e8f703af92acf18533127050f1107ba06eb985: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`
  --> 71af3045e3b2acdfdaef1de0d3e8f703af92acf18533127050f1107ba06eb985: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`
  --> 71af3045e3b2acdfdaef1de0d3e8f703af92acf18533127050f1107ba06eb985: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
  --> 71af3045e3b2acdfdaef1de0d3e8f703af92acf18533127050f1107ba06eb985: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`
  --> 71af3045e3b2acdfdaef1de0d3e8f703af92acf18533127050f1107ba06eb985: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`
  --> 71af3045e3b2acdfdaef1de0d3e8f703af92acf18533127050f1107ba06eb985: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`
  --> 71af3045e3b2acdfdaef1de0d3e8f703af92acf18533127050f1107ba06eb985:88:47
   |
88 |       if (self.oldMarketplaceSaleCollectionRef.getIDs().length == 0) {
   |                                                ^^^^^^ type is optional, consider optional-chaining: ?.getIDs

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

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


Hash:
71af3045e3b2acdfdaef1de0d3e8f703af92acf18533127050f1107ba06eb985
Status:
ERROR
Block height:
88496386
Block id:
907a483351d097d9add057e6adb732129124a5ae0afbe4d24bb47fa3479afdcd
Timestamp:
Saturday 28 September 2024 at 07:37:11 UTC
()
Proposer:
Authorizers: