From ea1919c12a6562da1bf358e58b956935ab373a70 Mon Sep 17 00:00:00 2001 From: CARLOS TRIGO Date: Fri, 17 Nov 2023 13:43:50 +0100 Subject: [PATCH] revert unmarshalFromVstorage fix --- .../test/swingsetTests/bootstrap/bootstrap-upgradable.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/agoric/contract/test/swingsetTests/bootstrap/bootstrap-upgradable.js b/agoric/contract/test/swingsetTests/bootstrap/bootstrap-upgradable.js index 77a8bc197..84fe338d9 100644 --- a/agoric/contract/test/swingsetTests/bootstrap/bootstrap-upgradable.js +++ b/agoric/contract/test/swingsetTests/bootstrap/bootstrap-upgradable.js @@ -70,7 +70,7 @@ import { testFunctionalityAfterUpgrade, testFunctionalityBeforeUpgrade, } from './bootstrap-upgrade-v2.js'; -import { unmarshalFromVstorage } from '@agoric/vats/tools/board-utils'; +import { unmarshalFromVstorage } from '@agoric/internal/src/lib-chainStorage.js'; import { mint } from './bootstrap-null-upgrade.js'; const trace = makeTracer('kreadBootUpgrade'); @@ -167,9 +167,8 @@ export const buildRootObject = async () => { * Reads the data from the vstorage at the given path * Will throw an error if path doesnt exist * @param {string} path - * @param {number} index index of the desired value in a deserialized stream cell (-1 for latest) */ - const getFromVStorage = (path, index = -1) => { + const getFromVStorage = (path) => { const { fromCapData } = makeMarshal( undefined, (slot, iface) => { @@ -179,7 +178,7 @@ export const buildRootObject = async () => { serializeBodyFormat: 'smallcaps', }, ); - return unmarshalFromVstorage(storageKit.data, path, fromCapData, index); + return unmarshalFromVstorage(storageKit.data, path, fromCapData); }; const committeeName = 'KREAd Committee';