Flow price: --
6245a78b713fa70c035f2dfc6082f2901aeb24e90242f4c21d4cd5294a94ecdb

Transaction

Hash: 6245a78b713fa70c035f2dfc6082f2901aeb24e90242f4c21d4cd5294a94ecdb
error
Error

Whoops! 😨 Something unexpected happened...

[Error Code: 1101] error caused by: 1 error occurred:
	* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: cannot deploy invalid contract
 --> 6245a78b713fa70c035f2dfc6082f2901aeb24e90242f4c21d4cd5294a94ecdb:4:3
  |
4 | 			signer.contracts.add(name: name, code: code.utf8 )
  | 			^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find declaration `NonFungibleToken` in `631e88ae7f1d7c20.NonFungibleToken`
 --> 75ac08e87a4caba7.TMCAFR:4:7
  |
4 | import NonFungibleToken from 0x631e88ae7f1d7c20
  |        ^^^^^^^^^^^^^^^^ available exported declarations are:


error: cannot find declaration `MetadataViews` in `631e88ae7f1d7c20.MetadataViews`
 --> 75ac08e87a4caba7.TMCAFR:5:7
  |
5 | import MetadataViews from 0x631e88ae7f1d7c20
  |        ^^^^^^^^^^^^^ available exported declarations are:


error: cannot find declaration `ViewResolver` in `631e88ae7f1d7c20.ViewResolver`
 --> 75ac08e87a4caba7.TMCAFR:6:7
  |
6 | import ViewResolver from 0x631e88ae7f1d7c20
  |        ^^^^^^^^^^^^ available exported declarations are:


error: ambiguous intersection type
  --> 75ac08e87a4caba7.TMCAFR:45:50
   |
45 |         access(all) fun createEmptyCollection(): @{NonFungibleToken.Collection} {
   |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: ambiguous intersection type
  --> 75ac08e87a4caba7.TMCAFR:69:45
   |
69 |         access(all) var ownedNFTs: @{UInt64: {NonFungibleToken.NFT}}
   |                                              ^^^^^^^^^^^^^^^^^^^^^^

error: ambiguous intersection type
  --> 75ac08e87a4caba7.TMCAFR:89:77
   |
89 |         access(NonFungibleToken.Withdraw) fun withdraw(withdrawID: UInt64): @{NonFungibleToken.NFT} {
   |                                                                              ^^^^^^^^^^^^^^^^^^^^^^

error: ambiguous intersection type
  --> 75ac08e87a4caba7.TMCAFR:98:40
   |
98 |         access(all) fun deposit(token: @{NonFungibleToken.NFT}) {
   |                                         ^^^^^^^^^^^^^^^^^^^^^^

error: ambiguous intersection type
   --> 75ac08e87a4caba7.TMCAFR:120:62
    |
120 |         access(all) view fun borrowViewResolver(id: UInt64): &{ViewResolver.Resolver}? {
    |                                                               ^^^^^^^^^^^^^^^^^^^^^^^

error: ambiguous intersection type
   --> 75ac08e87a4caba7.TMCAFR:127:55
    |
127 |         access(all) view fun borrowNFT(_ id: UInt64): &{NonFungibleToken.NFT}? {
    |                                                        ^^^^^^^^^^^^^^^^^^^^^^

error: ambiguous intersection type
   --> 75ac08e87a4caba7.TMCAFR:134:50
    |
134 |         access(all) fun createEmptyCollection(): @{NonFungibleToken.Collection} {
    |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: ambiguous intersection type
   --> 75ac08e87a4caba7.TMCAFR:141:59
    |
141 |     access(all) fun createEmptyCollection(nftType: Type): @{NonFungibleToken.Collection} {
    |                                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot infer type parameter: `T`
   --> 75ac08e87a4caba7.TMCAFR:152:12
    |
152 |             Type<MetadataViews.NFTCollectionData>(),
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot infer type parameter: `T`
   --> 75ac08e87a4caba7.TMCAFR:153:12
    |
153 |             Type<MetadataViews.NFTCollectionDisplay>(),
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot infer type parameter: `T`
   --> 75ac08e87a4caba7.TMCAFR:154:12
    |
154 |             Type<MetadataViews.EVMBridgedMetadata>()
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot infer type parameter: `T`
   --> 75ac08e87a4caba7.TMCAFR:165:17
    |
165 |             case Type<MetadataViews.NFTCollectionData>():
    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: ambiguous intersection type
   --> 75ac08e87a4caba7.TMCAFR:171:60
    |
171 |                     createEmptyCollectionFunction: (fun(): @{NonFungibleToken.Collection} {
    |                                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot infer type parameter: `T`
   --> 75ac08e87a4caba7.TMCAFR:176:17
    |
176 |             case Type<MetadataViews.NFTCollectionDisplay>():
    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot infer type: requires an explicit type annotation
   --> 75ac08e87a4caba7.TMCAFR:189:29
    |
189 |                     socials: {
    |                              ^

error: cannot infer type parameter: `T`
   --> 75ac08e87a4caba7.TMCAFR:193:17
    |
193 |             case Type<MetadataViews.EVMBridgedMetadata>():
    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot infer type parameter: `T`
  --> 75ac08e87a4caba7.TMCAFR:50:16
   |
50 |                 Type<MetadataViews.NFTCollectionData>()
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot infer type parameter: `T`
  --> 75ac08e87a4caba7.TMCAFR:56:21
   |
56 |                 case Type<MetadataViews.NFTCollectionData>():
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot infer type parameter: `T`
  --> 75ac08e87a4caba7.TMCAFR:57:99
   |
57 |                     return TMCAFR.resolveContractView(resourceType: Type<@TMCAFR.NFT>(), viewType: Type<MetadataViews.NFTCollectionData>())
   |                                                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: ambiguous intersection type
   --> 75ac08e87a4caba7.TMCAFR:121:49
    |
121 |             if let nft = &self.ownedNFTs[id] as &{NonFungibleToken.NFT}? {
    |                                                  ^^^^^^^^^^^^^^^^^^^^^^

error: ambiguous intersection type
   --> 75ac08e87a4caba7.TMCAFR:122:31
    |
122 |                 return nft as &{ViewResolver.Resolver}
    |                                ^^^^^^^^^^^^^^^^^^^^^^^

error: ambiguous intersection type
   --> 75ac08e87a4caba7.TMCAFR:128:44
    |
128 |             return (&self.ownedNFTs[id] as &{NonFungibleToken.NFT}?)
    |                                             ^^^^^^^^^^^^^^^^^^^^^^


Loading...
0

Loading...

1

Loading...