Skip to content

Commit

Permalink
refactor: chain agnostic makeOrchAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jul 25, 2024
1 parent 4ca6ee5 commit 816099a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/orchestration/src/examples/basic-flows.flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import { M, mustMatch } from '@endo/patterns';
*/

/**
* Create an account on a Cosmos chain and return a continuing offer with
* invitations makers for Delegate, WithdrawRewards, Transfer, etc.
* Create an OrchestrationAccount for a specific chain and return a continuing
* offer with invitations makers for Delegate, WithdrawRewards, Transfer, etc.
*
* @satisfies {OrchestrationFlow}
* @param {Orchestrator} orch
Expand All @@ -27,8 +27,8 @@ export const makeOrchAccount = async (orch, _ctx, seat, { chainName }) => {
seat.exit(); // no funds exchanged
mustMatch(chainName, M.string());
const remoteChain = await orch.getChain(chainName);
const cosmosAccount = await remoteChain.makeAccount();
return cosmosAccount.asContinuingOffer();
const orchAccount = await remoteChain.makeAccount();
return orchAccount.asContinuingOffer();
};

/**
Expand Down

0 comments on commit 816099a

Please sign in to comment.