From d9e5098a37643602076d1c0c0f2b03c90673a619 Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Sun, 14 Jan 2024 23:14:52 -0600 Subject: [PATCH] chore(wallet-tools): makeWalletFactory from powers, issuers --- contract/test/wallet-tools.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/contract/test/wallet-tools.js b/contract/test/wallet-tools.js index 118dc33..6bb52b0 100644 --- a/contract/test/wallet-tools.js +++ b/contract/test/wallet-tools.js @@ -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; +};