Skip to content

Commit

Permalink
chore(wallet-tools): makeWalletFactory from powers, issuers
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Jan 15, 2024
1 parent 5f1d37b commit d9e5098
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions contract/test/wallet-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,15 @@ export const seatLike = updates => {
getPayouts: () => sync.payouts.promise,
});
};

export const makeWalletFactory = async (
{ zoe, namesByAddressAdmin, chainStorage },
issuers,
) => {
const invitationIssuer = await E(zoe).getInvitationIssuer();
const walletFactory = mockWalletFactory(
{ zoe, namesByAddressAdmin, chainStorage },
{ Invitation: invitationIssuer, ...issuers },
);
return walletFactory;
};

0 comments on commit d9e5098

Please sign in to comment.