Flow price: --
02385610715ea6a7801f6d485c3d2a6b5ddbd5d94f65ddc0bd6fa1a0a7f9fbcb

Transaction

Hash: 02385610715ea6a7801f6d485c3d2a6b5ddbd5d94f65ddc0bd6fa1a0a7f9fbcb
error
Error

Whoops! 😨 Something unexpected happened...

[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()!
    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Hash:
02385610715ea6a7801f6d485c3d2a6b5ddbd5d94f65ddc0bd6fa1a0a7f9fbcb
Status:
ERROR
Block height:
28017853
Block id:
41b0f43f48333c293b9819ea03ff81da4570c71cd9e51805e196230856618d11
Timestamp:
Sunday 17 April 2022 at 16:04:54 UTC
()
Proposer:
Authorizers:
Gas used:
3
Show more