Skip to content

Commit

Permalink
Merge branch 'develop' into docs/contributing
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandelis Symeonidis committed Nov 17, 2023
2 parents 87614da + d8aa0eb commit 366f8f0
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 366f8f0

Please sign in to comment.