Skip to content

Commit

Permalink
fix(wallet): resolve home.wallet before exiting deploy.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc authored and michaelfig committed Jan 16, 2022
1 parent c0448ba commit f09eb66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/wallet/api/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ export default async function deployWallet(
// Claim the payments.
const issuerToPetname = new Map();
const issuerToPursePetnameP = new Map();
const wallet = E(walletVat).getWallet(bank, E(faucet).getFeePurse());
// AWAIT: Be sure this promise settles before this deploy script exits.
const wallet = await E(walletVat).getWallet(bank, E(faucet).getFeePurse());
const walletAdmin = E(wallet).getAdminFacet();
await Promise.all(
paymentInfo.map(async ({ issuerPetname, issuer }) => {
Expand Down

0 comments on commit f09eb66

Please sign in to comment.