forked from Kryha/KREAd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: patch of Agoric/agoric-sdk#8322
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/node_modules/@agoric/smart-wallet/src/walletFactory.js b/node_modules/@agoric/smart-wallet/src/walletFactory.js | ||
index b7ad670..bc9cb0c 100644 | ||
--- a/node_modules/@agoric/smart-wallet/src/walletFactory.js | ||
+++ b/node_modules/@agoric/smart-wallet/src/walletFactory.js | ||
@@ -142,6 +142,7 @@ export const makeAssetRegistry = assetPublisher => { | ||
* @param {import('@agoric/vat-data').Baggage} baggage | ||
*/ | ||
export const prepare = async (zcf, privateArgs, baggage) => { | ||
+ const upgrading = baggage.has('walletsByAddress'); | ||
const { agoricNames, board, assetPublisher } = zcf.getTerms(); | ||
|
||
const zoe = zcf.getZoeService(); | ||
@@ -292,7 +293,6 @@ export const prepare = async (zcf, privateArgs, baggage) => { | ||
if (walletBridgeManager) { | ||
// NB: may not be in service when creatorFacet is used, or ever | ||
// It can't be awaited because that fails vat restart | ||
- const upgrading = baggage.has('walletsByAddress'); | ||
if (upgrading) { | ||
void E(walletBridgeManager).setHandler(handleWalletAction); | ||
} else { |