diff --git a/packages/orchestration/test/examples/stake-atom.contract.test.ts b/packages/orchestration/test/examples/stake-atom.contract.test.ts index 96097031fbe6..652997171c4e 100644 --- a/packages/orchestration/test/examples/stake-atom.contract.test.ts +++ b/packages/orchestration/test/examples/stake-atom.contract.test.ts @@ -13,11 +13,13 @@ const contractFile = `${dirname}/../../src/examples/stakeAtom.contract.js`; type StartFn = typeof import('@agoric/orchestration/src/examples/stakeAtom.contract.js').start; -const coreEval = async ( - t, - { orchestration, timer, marshaller, storage, bld }, -) => { - t.log('install stakeAtom contract'); +const startContract = async ({ + orchestration, + timer, + marshaller, + storage, + bld, +}) => { const { zoe, bundleAndInstall } = await setUpZoeForTest(); const installation: Installation = await bundleAndInstall(contractFile); @@ -46,7 +48,7 @@ test('makeAccount, deposit, withdraw', async t => { brands: { ist }, utils, } = await commonSetup(t); - const { publicFacet } = await coreEval(t, { ...bootstrap, bld: ist }); + const { publicFacet } = await startContract({ ...bootstrap, bld: ist }); t.log('make an ICA account'); const account = await E(publicFacet).makeAccount(); diff --git a/packages/orchestration/test/examples/stake-bld.contract.test.ts b/packages/orchestration/test/examples/stake-bld.contract.test.ts index 412c60ab8762..7dc11530e48f 100644 --- a/packages/orchestration/test/examples/stake-bld.contract.test.ts +++ b/packages/orchestration/test/examples/stake-bld.contract.test.ts @@ -12,8 +12,13 @@ const contractFile = `${dirname}/../../src/examples/stakeBld.contract.js`; type StartFn = typeof import('@agoric/orchestration/src/examples/stakeBld.contract.js').start; -const coreEval = async (t, { timer, localchain, marshaller, storage, bld }) => { - t.log('install stakeBld contract'); +const startContract = async ({ + timer, + localchain, + marshaller, + storage, + bld, +}) => { const { zoe, bundleAndInstall } = await setUpZoeForTest(); const installation: Installation = await bundleAndInstall(contractFile); @@ -39,7 +44,7 @@ test('makeAccount, deposit, withdraw', async t => { brands: { bld }, utils, } = await commonSetup(t); - const { publicFacet } = await coreEval(t, { ...bootstrap, bld }); + const { publicFacet } = await startContract({ ...bootstrap, bld }); t.log('make a LocalChainAccount'); const account = await E(publicFacet).makeAccount(); @@ -72,7 +77,7 @@ test('makeStakeBldInvitation', async t => { brands: { bld }, utils, } = await commonSetup(t); - const { publicFacet, zoe } = await coreEval(t, { ...bootstrap, bld }); + const { publicFacet, zoe } = await startContract({ ...bootstrap, bld }); t.log('call makeStakeBldInvitation'); const inv = await E(publicFacet).makeStakeBldInvitation(); @@ -113,7 +118,7 @@ test('makeAccountInvitationMaker', async t => { bootstrap, brands: { bld }, } = await commonSetup(t); - const { publicFacet, zoe } = await coreEval(t, { ...bootstrap, bld }); + const { publicFacet, zoe } = await startContract({ ...bootstrap, bld }); const inv = await E(publicFacet).makeAccountInvitationMaker();