Skip to content

Commit

Permalink
fixup! fix: getConnectionInfo in view of the primary chain
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jul 15, 2024
1 parent bb6360e commit 691fc54
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/orchestration/src/exos/chain-hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,22 +288,22 @@ export const makeChainHub = (agoricNames, vowTools) => {
return lookupChainInfo(chainName);
},
/**
* @param {string} chainId1
* @param {string} chainId2
* @param {IBCConnectionInfo} connectionInfo
* @param {string} primaryChainId
* @param {string} counterpartyChainId
* @param {IBCConnectionInfo} connectionInfo from primary to counterparty
*/
registerConnection(chainId1, chainId2, connectionInfo) {
registerConnection(primaryChainId, counterpartyChainId, connectionInfo) {
const [key, normalized] = normalizeConnectionInfo(
chainId1,
chainId2,
primaryChainId,
counterpartyChainId,
connectionInfo,
);
connectionInfos.init(key, normalized);
},

/**
* @param {string | { chainId: string }} primary
* @param {string | { chainId: string }} counter
* @param {string | { chainId: string }} primary the primary chain
* @param {string | { chainId: string }} counter the counterparty chain
* @returns {Vow<IBCConnectionInfo>}
*/
getConnectionInfo(primary, counter) {
Expand All @@ -326,8 +326,8 @@ export const makeChainHub = (agoricNames, vowTools) => {
/**
* @template {string} C1
* @template {string} C2
* @param {C1} primaryName
* @param {C2} counterName
* @param {C1} primaryName the primary chain name
* @param {C2} counterName the counterparty chain name
* @returns {Vow<
* [ActualChainInfo<C1>, ActualChainInfo<C2>, IBCConnectionInfo]
* >}
Expand Down

0 comments on commit 691fc54

Please sign in to comment.