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