diff --git a/packages/orchestration/src/exos/remote-chain-facade.js b/packages/orchestration/src/exos/remote-chain-facade.js index 3efebfff11d..3349eb39c5d 100644 --- a/packages/orchestration/src/exos/remote-chain-facade.js +++ b/packages/orchestration/src/exos/remote-chain-facade.js @@ -125,8 +125,6 @@ const prepareRemoteChainFacadeKit = ( makeAccount() { return asVow(() => { const { remoteChainInfo, connectionInfo } = this.state; - const stakingDenom = remoteChainInfo.stakingTokens?.[0]?.denom; - if (!stakingDenom) throw Fail`chain info lacks staking denom`; // icqConnection is ultimately retrieved from state, but let's // create a connection if it doesn't exist diff --git a/packages/orchestration/test/facade-durability.test.ts b/packages/orchestration/test/facade-durability.test.ts index dff35064c26..011ccc98276 100644 --- a/packages/orchestration/test/facade-durability.test.ts +++ b/packages/orchestration/test/facade-durability.test.ts @@ -80,7 +80,7 @@ test('chain info', async t => { t.deepEqual(await vt.when(result.getChainInfo()), mockChainInfo); }); -test('faulty chain info', async t => { +test('missing chain info', async t => { const { facadeServices, commonPrivateArgs } = await commonSetup(t); const zone = provideFreshRootZone(); @@ -99,16 +99,7 @@ test('faulty chain info', async t => { commonPrivateArgs.marshaller, ); - const { chainHub, orchestrate } = orchKit; - - const { stakingTokens, ...sansStakingTokens } = mockChainInfo; - - chainHub.registerChain('mock', sansStakingTokens); - chainHub.registerConnection( - 'agoric-3', - mockChainInfo.chainId, - mockChainConnection, - ); + const { orchestrate } = orchKit; const handle = orchestrate('mock', {}, async orc => { const chain = await orc.getChain('mock'); @@ -117,7 +108,7 @@ test('faulty chain info', async t => { }); await t.throwsAsync(vt.when(handle()), { - message: 'chain info lacks staking denom', + message: 'chain not found:mock', }); });