Skip to content

Commit

Permalink
fix: don't route getAssetSubscription() thru bootstrap
Browse files Browse the repository at this point in the history
CAUTION: this provides the walletFactory with
the capability to spend from the provisino pool.

TODO(#5885): vbank should provide a facet attenuated
to only provide getAssetSubscription
  • Loading branch information
dckc committed May 2, 2023
1 parent bb6fe95 commit 2c00405
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/vats/src/core/startWalletFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,11 @@ export const startWalletFactory = async (
harden({
agoricNames,
board,
assetPublisher: Far('AssetPublisher', {
getAssetSubscription: () => E(poolBank).getAssetSubscription(),
}),
// CAUTION: this provides the walletFactory with
// the capability to spend from the provisino pool.
// TODO(#5885): vbank should provide a facet attenuated
// to only provide getAssetSubscription
assetPublisher: poolBank,
}),
);
/** @type {WalletFactoryStartResult} */
Expand Down

0 comments on commit 2c00405

Please sign in to comment.