Skip to content

Commit

Permalink
WIP: clean up moduleAccountAddress stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Sep 9, 2022
1 parent 8150d32 commit c63c7d1
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions packages/vats/src/core/startWalletFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,12 @@ export const startWalletFactory = async (
});
walletFactoryStartResult.resolve(wfFacets);

const poolBank = await E(bankManager)
.getModuleAccountAddress('provisionPool')
.then(addr =>
E(bankManager).getBankForAddress(
addr ||
PROVISION_ACCT_TEST ||
assert.fail('no module address for provisionPool'),
),
);
// const addr = PROVISION_ACCT_TEST;
const addr = await E(bankManager).getModuleAccountAddress('vbank/provision');
console.log('provision pool', { addr });
const poolBank = E(bankManager).getBankForAddress(
addr || PROVISION_ACCT_TEST,
);
const ppTerms = harden({
perAccountInitialAmount: AmountMath.make(feeBrand, perAccountInitialValue),
});
Expand Down

0 comments on commit c63c7d1

Please sign in to comment.