Flow price: --
dfaf94e72ed70a1dd3ec356556aa61ae2599b6b049558fc7b5ef51a0f52d3522

Transaction

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

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

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

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


Loading...