Skip to content

Commit

Permalink
Use correct version of unmarshalFromVstorage in bootstrap tests (#99)
Browse files Browse the repository at this point in the history
We have been trying to keep up with releases of agoric-sdk's master
branch when developing locally, however, Agoric has recommended using
the `release-mainnet1B` branch instead. This change results in all tests
passing having checked-out `release-mainnet1B`
  • Loading branch information
carlos-kryha authored Nov 17, 2023
1 parent 56b5c9e commit d8aa0eb
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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) => {
Expand All @@ -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';
Expand Down

0 comments on commit d8aa0eb

Please sign in to comment.