Skip to content

Commit

Permalink
fix(internal): null chain storage uses remotable messenger
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Oct 5, 2024
1 parent fbde033 commit d4afab8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/internal/src/lib-chainStorage.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check

import { Fail } from '@endo/errors';
import { E } from '@endo/far';
import { E, Far } from '@endo/far';
import { M } from '@endo/patterns';
import { makeHeapZone } from '@agoric/base-zone/heap.js';
import * as cb from './callback.js';
Expand Down Expand Up @@ -278,7 +278,10 @@ export function makeChainStorageRoot(
*/
const makeNullStorageNode = () => {
// XXX re-use "ChainStorage" methods above which don't actually depend on chains
return makeChainStorageRoot(() => null, 'null');
return makeChainStorageRoot(
Far('NullMessenger', () => null),
'null',
);
};

/**
Expand Down

0 comments on commit d4afab8

Please sign in to comment.