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