From 41915e748455d27f9270228addad43e016f21947 Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Wed, 6 Sep 2023 17:02:46 -0500 Subject: [PATCH] style(smart-wallet): backported code conforms to newer coding style --- packages/smart-wallet/src/smartWallet.js | 4 +++- packages/smart-wallet/test/test-addAsset.js | 2 ++ packages/vats/tools/board-utils.js | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/smart-wallet/src/smartWallet.js b/packages/smart-wallet/src/smartWallet.js index 9a7812577c1..c7f57f969f0 100644 --- a/packages/smart-wallet/src/smartWallet.js +++ b/packages/smart-wallet/src/smartWallet.js @@ -1,3 +1,5 @@ +// backported types are out of sync +// @ts-nocheck import { AmountShape, BrandShape, @@ -666,7 +668,7 @@ export const prepareSmartWallet = (baggage, shared) => { * Umarshals the actionCapData and delegates to the appropriate action handler. * * @param {import('@endo/marshal').CapData} actionCapData of type BridgeAction - * @param {boolean} [canSpend=false] + * @param {boolean} [canSpend] * @returns {Promise} */ handleBridgeAction(actionCapData, canSpend = false) { diff --git a/packages/smart-wallet/test/test-addAsset.js b/packages/smart-wallet/test/test-addAsset.js index 8480cea0d87..ef24b961c77 100644 --- a/packages/smart-wallet/test/test-addAsset.js +++ b/packages/smart-wallet/test/test-addAsset.js @@ -1,3 +1,5 @@ +/* backported code conforms to newer coding standards */ +/* eslint-disable no-await-in-loop */ // @ts-check import { test as anyTest } from '@agoric/zoe/tools/prepare-test-env-ava.js'; import { E, Far } from '@endo/far'; diff --git a/packages/vats/tools/board-utils.js b/packages/vats/tools/board-utils.js index f5d7cf2e8d5..04fa02becac 100644 --- a/packages/vats/tools/board-utils.js +++ b/packages/vats/tools/board-utils.js @@ -115,7 +115,7 @@ export const makeHistoryReviver = (entries, slotToVal = undefined) => { const vsMap = new Map(entries); const fromCapData = (...args) => Reflect.apply(board.fromCapData, board, args); - const getItem = key => unmarshalFromVstorage(vsMap, key, fromCapData); + const getItem = key => unmarshalFromVstorage(vsMap, key, fromCapData, -1); const children = prefix => { prefix.endsWith('.') || Fail`prefix must end with '.'`; return harden([