[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 --> 1306b7fdcbcf3a9396202cacbf245db680b7039d2baf75a4d570542fd1b61814: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
Loading...
Loading...
Happy diving into the flow Remember to test your contracts in 1.0 here on testnet