Skip to content

Commit

Permalink
fixup! refactor(orchestration): rename createAccount -> makeAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpatrickdev committed May 1, 2024
1 parent e8276f4 commit a3e4c25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/boot/test/bootstrapTests/test-orchestration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ test.serial('stakeAtom - smart wallet', async t => {
invitationSpec: {
source: 'agoricContract',
instancePath: ['stakeAtom'],
callPipe: [['makeAccountInvitation']],
callPipe: [['makeNewAccountInvitation']],
},
proposal: {},
});
Expand Down
4 changes: 2 additions & 2 deletions packages/orchestration/src/examples/stakeAtom.contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit a3e4c25

Please sign in to comment.