Skip to content

Commit

Permalink
fix: patch of Agoric/agoric-sdk#8322
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Sep 26, 2023
1 parent 3b6703c commit a2de6d6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions agoric/patches/@agoric+smart-wallet+0.5.4-u11wf.0.patch
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 {

0 comments on commit a2de6d6

Please sign in to comment.