From a3e4c2534c14bb2b5719b23d64d72d146e2c30bd Mon Sep 17 00:00:00 2001 From: 0xPatrick Date: Wed, 1 May 2024 16:09:38 -0400 Subject: [PATCH] fixup! refactor(orchestration): rename createAccount -> makeAccount --- packages/boot/test/bootstrapTests/test-orchestration.ts | 2 +- packages/orchestration/src/examples/stakeAtom.contract.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/boot/test/bootstrapTests/test-orchestration.ts b/packages/boot/test/bootstrapTests/test-orchestration.ts index f61088d1cc39..d105d481dc87 100644 --- a/packages/boot/test/bootstrapTests/test-orchestration.ts +++ b/packages/boot/test/bootstrapTests/test-orchestration.ts @@ -140,7 +140,7 @@ test.serial('stakeAtom - smart wallet', async t => { invitationSpec: { source: 'agoricContract', instancePath: ['stakeAtom'], - callPipe: [['makeAccountInvitation']], + callPipe: [['makeNewAccountInvitation']], }, proposal: {}, }); diff --git a/packages/orchestration/src/examples/stakeAtom.contract.js b/packages/orchestration/src/examples/stakeAtom.contract.js index d7359c097738..6635477224eb 100644 --- a/packages/orchestration/src/examples/stakeAtom.contract.js +++ b/packages/orchestration/src/examples/stakeAtom.contract.js @@ -70,14 +70,14 @@ export const start = async (zcf, privateArgs, baggage) => { 'StakeAtom', M.interface('StakeAtomI', { makeAccount: M.callWhen().returns(M.remotable('ChainAccount')), - makeAccountInvitation: M.call().returns(M.promise()), + makeNewAccountInvitation: M.call().returns(M.promise()), }), { async makeAccount() { trace('makeAccount'); return makeAccount().then(({ account }) => account); }, - makeAccountInvitation() { + makeNewAccountInvitation() { trace('makeCreateAccountInvitation'); return zcf.makeInvitation( async seat => {