[Error Code: 1101] cadence runtime error Execution failed: error: cannot deploy invalid contract --> 02385610715ea6a7801f6d485c3d2a6b5ddbd5d94f65ddc0bd6fa1a0a7f9fbcb:4:3 | 4 | signer.contracts.add(name: name, code: code.decodeHex() ) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find declaration `SwapFactory` in `b063c16cac85dbd1.SwapFactory` --> a6850776a94e6551.SwapRouter:9:7 | 9 | import SwapFactory from 0xb063c16cac85dbd1 | ^^^^^^^^^^^ available exported declarations are: error: cannot find declaration `SwapConfig` in `b78ef7afa52ff906.SwapConfig` --> a6850776a94e6551.SwapRouter:10:7 | 10 | import SwapConfig from 0xb78ef7afa52ff906 | ^^^^^^^^^^ available exported declarations are: error: cannot find declaration `SwapError` in `b78ef7afa52ff906.SwapError` --> a6850776a94e6551.SwapRouter:11:7 | 11 | import SwapError from 0xb78ef7afa52ff906 | ^^^^^^^^^ available exported declarations are: error: cannot find declaration `SwapInterfaces` in `b78ef7afa52ff906.SwapInterfaces` --> a6850776a94e6551.SwapRouter:12:7 | 12 | import SwapInterfaces from 0xb78ef7afa52ff906 | ^^^^^^^^^^^^^^ available exported declarations are: error: ambiguous restricted type --> a6850776a94e6551.SwapRouter:40:68 | 40 | let pairPublicRef = getAccount(pairAddr).getCapability<&{SwapInterfaces.PairPublic}>(SwapConfig.PairPublicPath).borrow() ?? panic( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot infer type parameter: `T` --> a6850776a94e6551.SwapRouter:40:32 | 40 | let pairPublicRef = getAccount(pairAddr).getCapability<&{SwapInterfaces.PairPublic}>(SwapConfig.PairPublicPath).borrow() ?? panic( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: ambiguous restricted type --> a6850776a94e6551.SwapRouter:76:68 | 76 | let pairPublicRef = getAccount(pairAddr).getCapability<&{SwapInterfaces.PairPublic}>(SwapConfig.PairPublicPath).borrow() ?? panic( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot infer type parameter: `T` --> a6850776a94e6551.SwapRouter:76:32 | 76 | let pairPublicRef = getAccount(pairAddr).getCapability<&{SwapInterfaces.PairPublic}>(SwapConfig.PairPublicPath).borrow() ?? panic( | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: ambiguous restricted type --> a6850776a94e6551.SwapRouter:220:64 | 220 | let pairPublicRef = getAccount(pairAddr).getCapability<&{SwapInterfaces.PairPublic}>(SwapConfig.PairPublicPath).borrow()! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot infer type parameter: `T` --> a6850776a94e6551.SwapRouter:220:28 | 220 | let pairPublicRef = getAccount(pairAddr).getCapability<&{SwapInterfaces.PairPublic}>(SwapConfig.PairPublicPath).borrow()! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Remember to upgrade your contracts to 1.0!