From 81d1df512611b53cbf560bf74397e535c569cf48 Mon Sep 17 00:00:00 2001 From: 0xPatrick Date: Thu, 28 Nov 2024 01:31:57 -0500 Subject: [PATCH] test: deposit-withdraw requires asset info --- .../test/deposit-withdraw-portfolio.test.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/multichain-testing/test/deposit-withdraw-portfolio.test.ts b/multichain-testing/test/deposit-withdraw-portfolio.test.ts index 24bb5277a80..e4590cabd4c 100644 --- a/multichain-testing/test/deposit-withdraw-portfolio.test.ts +++ b/multichain-testing/test/deposit-withdraw-portfolio.test.ts @@ -1,9 +1,11 @@ import anyTest from '@endo/ses-ava/prepare-endo.js'; import type { TestFn } from 'ava'; import { AmountMath } from '@agoric/ertp'; +import { withChainCapabilities } from '@agoric/orchestration'; import { makeDoOffer } from '../tools/e2e-tools.js'; import { makeQueryClient } from '../tools/query.js'; import { commonSetup, type SetupContextWithWallets } from './support.js'; +import starshipChainInfo from '../starship-chain-info.js'; const test = anyTest as TestFn; @@ -14,12 +16,15 @@ const contractBuilder = '../packages/builders/scripts/orchestration/init-basic-flows.js'; test.before(async t => { - const { deleteTestKeys, setupTestKeys, ...rest } = await commonSetup(t); + const { setupTestKeys, ...common } = await commonSetup(t); + const { assetInfo, deleteTestKeys, startContract } = common; deleteTestKeys(accounts).catch(); const wallets = await setupTestKeys(accounts); - t.context = { ...rest, wallets, deleteTestKeys }; - const { startContract } = rest; - await startContract(contractName, contractBuilder); + t.context = { ...common, wallets }; + await startContract(contractName, contractBuilder, { + chainInfo: JSON.stringify(withChainCapabilities(starshipChainInfo)), + assetInfo: JSON.stringify(assetInfo), + }); }); test.after(async t => {