From a2de6d6ac73749eb96f24d63fa1c801e9105fbe8 Mon Sep 17 00:00:00 2001 From: Mathieu Hofman Date: Tue, 26 Sep 2023 12:56:47 +0000 Subject: [PATCH] fix: patch of Agoric/agoric-sdk#8322 --- .../@agoric+smart-wallet+0.5.4-u11wf.0.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 agoric/patches/@agoric+smart-wallet+0.5.4-u11wf.0.patch diff --git a/agoric/patches/@agoric+smart-wallet+0.5.4-u11wf.0.patch b/agoric/patches/@agoric+smart-wallet+0.5.4-u11wf.0.patch new file mode 100644 index 000000000..61bf89bc7 --- /dev/null +++ b/agoric/patches/@agoric+smart-wallet+0.5.4-u11wf.0.patch @@ -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 {