diff --git a/packages/smart-wallet/src/smartWallet.js b/packages/smart-wallet/src/smartWallet.js index 0cb57c4809ea..e8b6edb6a88a 100644 --- a/packages/smart-wallet/src/smartWallet.js +++ b/packages/smart-wallet/src/smartWallet.js @@ -12,9 +12,10 @@ import { observeNotifier, prepareDurablePublishKit, } from '@agoric/notifier'; -import { M, makeScalarMapStore, mustMatch } from '@agoric/store'; +import { M, mustMatch } from '@agoric/store'; import { - defineVirtualExoClassKit, + defineDurableExoClassKit, + makeKindHandle, makeScalarBigMapStore, } from '@agoric/vat-data'; import { makeEphemeraProvider } from '@agoric/zoe/src/contractSupport/index.js'; @@ -227,7 +228,7 @@ export const prepareSmartWallet = (baggage, shared) => { const { walletStorageNode } = unique; const nonpreciousState = { // What purses have reported on construction and by getCurrentAmountNotifier updates. - purseBalances: makeScalarMapStore(), + purseBalances: makeScalarBigMapStore('purse balances', { durable: true }), /** @type {PublishKit} */ updatePublishKit, /** @type {PublishKit} */ @@ -274,8 +275,8 @@ export const prepareSmartWallet = (baggage, shared) => { }), }; - return defineVirtualExoClassKit( - 'SmartWallet', + return defineDurableExoClassKit( + makeKindHandle('SmartWallet'), behaviorGuards, initState, {