Whoops! π¨ Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: cannot deploy invalid contract
--> 239b5eb80e936d04124815bb3440edcc8a3ae29c35b8e475d993aca7f704b84e:4:3
|
4 | signer.contracts.add(name: name, code: code.utf8 )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find type in this scope: `FooToken`
--> a7a378052aeb833e.FooTokenNew:80:33
|
80 | pub fun createEmptyVault(): @FooToken.Vault {
| ^^^^^^^^ not found in this scope
error: cannot find type in this scope: `FooToken`
--> a7a378052aeb833e.FooTokenNew:80:33
|
80 | pub fun createEmptyVault(): @FooToken.Vault {
| ^^^^^^^^ not found in this scope
error: cannot find type in this scope: `FooToken`
--> a7a378052aeb833e.FooTokenNew:44:35
|
44 | let vault <- from as! @FooToken.Vault // typecast to make sure we are using the correct token type
| ^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `FooToken`
--> a7a378052aeb833e.FooTokenNew:58:12
|
58 | FooToken.totalSupply = FooToken.totalSupply - self.balance
| ^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `FooToken`
--> a7a378052aeb833e.FooTokenNew:58:35
|
58 | FooToken.totalSupply = FooToken.totalSupply - self.balance
| ^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `FooToken`
--> a7a378052aeb833e.FooTokenNew:71:12
|
71 | FooToken.totalSupply = FooToken.totalSupply + amount
| ^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `FooToken`
--> a7a378052aeb833e.FooTokenNew:71:35
|
71 | FooToken.totalSupply = FooToken.totalSupply + amount
| ^^^^^^^^ not found in this scope