diff --git a/packages/orchestration/src/examples/basic-flows.contract.js b/packages/orchestration/src/examples/basic-flows.contract.js index 1771f9e3f88f..2404b42da026 100644 --- a/packages/orchestration/src/examples/basic-flows.contract.js +++ b/packages/orchestration/src/examples/basic-flows.contract.js @@ -10,6 +10,7 @@ import { provideOrchestration } from '../utils/start-helper.js'; * @import {Baggage} from '@agoric/vat-data'; * @import {Orchestrator} from '@agoric/orchestration'; * @import {OrchestrationPowers} from '../utils/start-helper.js'; + * @import {ResolvedContinuingOfferResult} from '../utils/zoe-tools.js'; */ /** @@ -44,7 +45,7 @@ export const start = async (zcf, privateArgs, baggage) => { privateArgs.marshaller, ); - /** @type {OfferHandler} */ + /** @type {OfferHandler>} */ const makeOrchAccount = orchestrate( 'makeOrchAccount', undefined, diff --git a/packages/orchestration/src/exos/cosmos-orchestration-account.js b/packages/orchestration/src/exos/cosmos-orchestration-account.js index f3d299b0cdb7..bc86158ba547 100644 --- a/packages/orchestration/src/exos/cosmos-orchestration-account.js +++ b/packages/orchestration/src/exos/cosmos-orchestration-account.js @@ -329,7 +329,6 @@ export const prepareCosmosOrchestrationAccountKit = ( // expect this complete in the same run publicSubscribers: await when(holder.getPublicTopics()), invitationMakers, - holder, }); }); }, diff --git a/packages/orchestration/test/examples/basic-flows.contract.test.ts b/packages/orchestration/test/examples/basic-flows.contract.test.ts index c95f4e7a1174..ae166c506a20 100644 --- a/packages/orchestration/test/examples/basic-flows.contract.test.ts +++ b/packages/orchestration/test/examples/basic-flows.contract.test.ts @@ -65,15 +65,13 @@ const orchestrationAccountScenario = test.macro({ const publicFacet = await E(zoe).getPublicFacet(instance); const inv = E(publicFacet).makeOrchAccountInvitation(); const userSeat = E(zoe).offer(inv, {}, undefined, { chainName }); - // @ts-expect-error TODO: type expected offer result - const { holder, invitationMakers, publicSubscribers } = + const { invitationMakers, publicSubscribers } = await E(userSeat).getOfferResult(); - t.regex(getInterfaceOf(holder)!, /Orchestration (.*) holder/); t.regex(getInterfaceOf(invitationMakers)!, /invitationMakers/); const { description, storagePath, subscriber } = publicSubscribers.account; - t.regex(description, /Account holder/); + t.regex(description!, /Account holder/); const expectedStoragePath = `mockChainStorageRoot.basic-flows.${config.addressPrefix}`; t.is(storagePath, expectedStoragePath);