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