Skip to content

Commit

Permalink
refactor: use heapVowTools import
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jun 21, 2024
1 parent 1ed02ba commit ea0bbc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/orchestration/src/exos/chain-hub.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { VowShape } from '@agoric/vow';
import { allVows, watch } from '@agoric/vow/vat.js';
import { heapVowTools } from '@agoric/vow/vat.js';
import { makeHeapZone } from '@agoric/zone';
import { E } from '@endo/far';
import { M } from '@endo/patterns';
import { CosmosChainInfoShape, IBCConnectionInfoShape } from '../typeGuards.js';

// FIXME test thoroughly whether heap suffices for ChainHub
const { allVows, watch } = heapVowTools;

const { Fail } = assert;

/**
Expand Down
4 changes: 3 additions & 1 deletion packages/vats/src/proposals/network-proposal.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import { makeScalarBigMapStore } from '@agoric/vat-data';

// Heap-based vow resolution is used for this module because the
// bootstrap vat can't yet be upgraded.
import { when } from '@agoric/vow/vat.js';
import { heapVowTools } from '@agoric/vow/vat.js';

const { when } = heapVowTools;

/**
* @import {ProtocolHandler} from '@agoric/network';
Expand Down

0 comments on commit ea0bbc2

Please sign in to comment.