-
-
Save Jorge-Lopes/8df50c62888733bf33ffa7c16e2cae46 to your computer and use it in GitHub Desktop.
Issue while connecting to a Remote Port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>home.ibcport | |
[[Object Alleged: Port]{},[Object Alleged: Port]{},[Object Alleged: Port]{}] | |
>port = history[3][0] | |
[Object Alleged: Port]{} | |
>E(history[3][0]).getLocalAddress() | |
"/ibc-port/port-1" | |
>Far('handler', { "infoMessage": (...args) => { console.log(...args) }, "onReceive": (c, p) => { console.log('received packet: ', p); }, "onOpen": (c) => { console.log('opened') } }) | |
[Object Alleged: handler]{"infoMessage":[Function infoMessage],"onReceive":[Function onReceive],"onOpen":[Function onOpen]} | |
>E(port).connect( | |
`/ibc-hop/connection-0/ibc-port/icahost/ordered/{\"version\":\"ics27-1\",\"controllerConnectionId\":\"connection-0\",\"hostConnectionId\":\"connection-2588\",\"address\":\"\",\"encoding\":\"proto3\",\"txType\":\"sdk_multi_msg\"}`, | |
history[29], | |
); | |
unresolved Promise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SwingSet: vat: v12: IBC downcall startChannelOpenInit { packet: { source_port: 'port-1', destination_port: 'icahost' }, order: 'ORDERED', hops: [ 'connection-0' ], version: '{"version":"ics27-1","controllerConnectionId":"connection-0","hostConnectionId":"connection-2588","address":"","encoding":"proto3","txType":"sdk_multi_msg"}' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem:
The connect method of the ibcPort should resolve to a connection object, which it is not happening.
Context:
I am trying to establish an Interchain account (ICA), being agoriclocacl the controller chain and theta-testnet-001 the host chain.
Prior to the execution of the commands above, an IBC connection was established and Hermes relayer started.
Demo guide being followed: https://github.com/Jorge-Lopes/agoric-components/blob/feature/cosmos-hub-ica/cosmos-hub-ica/pitalco-implementation/cosmos-hub-ica_demo.md