Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
error: cannot find variable in this scope: `acct`
--> e1bdfc1bf4da23d3814a03d9fa086cdbeb6b8efb304a4184fe787e79937f1732:37:11
|
37 | if acct.borrow<&NFTStorefront.Storefront>(from: NFTStorefront.StorefrontStoragePath) == nil {
| ^^^^ not found in this scope
error: cannot find variable in this scope: `acct`
--> e1bdfc1bf4da23d3814a03d9fa086cdbeb6b8efb304a4184fe787e79937f1732:43:12
|
43 | acct.save(<-storefront, to: NFTStorefront.StorefrontStoragePath)
| ^^^^ not found in this scope
error: cannot find variable in this scope: `acct`
--> e1bdfc1bf4da23d3814a03d9fa086cdbeb6b8efb304a4184fe787e79937f1732:46:12
|
46 | acct.link<&NFTStorefront.Storefront{NFTStorefront.StorefrontPublic}>(NFTStorefront.StorefrontPublicPath, target: NFTStorefront.StorefrontStoragePath)
| ^^^^ not found in this scope
error: loss of resource
--> e1bdfc1bf4da23d3814a03d9fa086cdbeb6b8efb304a4184fe787e79937f1732:40:16
|
40 | let storefront <- NFTStorefront.createStorefront() as! @NFTStorefront.Storefront
| ^^^^^^^^^^