Skip to content

Commit

Permalink
chore(types): unmarshallFromVstorage return any
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Apr 25, 2024
1 parent 552b874 commit cc00e01
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions packages/internal/src/marshal.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ harden(assertCapData);
* @param {string} key
* @param {ReturnType<typeof import('@endo/marshal').makeMarshal>['fromCapData']} fromCapData
* @param {number} index index of the desired value in a deserialized stream cell
* @return {any}
*/
export const unmarshalFromVstorage = (data, key, fromCapData, index) => {
const serialized = data.get(key) || Fail`no data for ${key}`;
Expand Down
2 changes: 0 additions & 2 deletions packages/vats/tools/board-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export const makeAgoricNamesRemotesFromFakeStorage = fakeStorageKit => {
* import('@agoric/vats/tools/board-utils.js').BoardRemote,
* ][]}
*/
// @ts-expect-error cast
const parts = unmarshalFromVstorage(
data,
`published.agoricNames.${kind}`,
Expand All @@ -64,7 +63,6 @@ export const makeAgoricNamesRemotesFromFakeStorage = fakeStorageKit => {
const tables = Object.fromEntries(entries);
// XXX not part of reverse[]
const vbankAsset = Object.fromEntries(
// @ts-expect-error cast
unmarshalFromVstorage(
data,
`published.agoricNames.vbankAsset`,
Expand Down

0 comments on commit cc00e01

Please sign in to comment.