Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
error: cannot find variable in this scope: `buyer`
--> fd2575ce23f8c5c35a4c38d58f3b8e27de8028491c0cb2da1fca628e1ec3e72e:9:7
|
9 | if buyer.borrow<&Collector.Collection>(from: Collector.CollectionStoragePath) == nil {
| ^^^^^ not found in this scope
error: cannot find variable in this scope: `buyer`
--> fd2575ce23f8c5c35a4c38d58f3b8e27de8028491c0cb2da1fca628e1ec3e72e:11:6
|
11 | buyer.save(<-collection, to: Collector.CollectionStoragePath)
| ^^^^^ not found in this scope
error: cannot find variable in this scope: `buyer`
--> fd2575ce23f8c5c35a4c38d58f3b8e27de8028491c0cb2da1fca628e1ec3e72e:12:6
|
12 | buyer.link<&Collector.Collection{NonFungibleToken.CollectionPublic, Collector.NFTCollectionPublic, MetadataViews.ResolverCollection}>(Collector.CollectionPublicPath, target: Collector.CollectionStoragePath)
| ^^^^^ not found in this scope