Skip to content

Commit

Permalink
refactor(test-swap-wallet): use getBundleId helper
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Mar 12, 2024
1 parent a26434e commit 4ca2292
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contract/test/test-swap-wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { mockBootstrapPowers } from './boot-tools.js';
import { installContract, startContract } from '../src/swaparoo.proposal.js';
import { makeStableFaucet } from './mintStable.js';
import { mockWalletFactory, seatLike } from './wallet-tools.js';
import { makeBundleCacheContext } from './bundle-tools.js';
import { getBundleId, makeBundleCacheContext } from './bundle-tools.js';

/** @typedef {import('./wallet-tools.js').MockWallet} MockWallet */

Expand All @@ -30,7 +30,7 @@ test.serial('bootstrap and start contract', async t => {

const { bundleCache } = t.context;
const bundle = await bundleCache.load(assets.swaparoo, contractName);
const bundleID = `b1-${bundle.endoZipBase64Sha512}`;
const bundleID = getBundleId(bundle);
t.log('publish bundle', bundleID.slice(0, 8));
vatAdminState.installBundle(bundleID, bundle);

Expand Down

0 comments on commit 4ca2292

Please sign in to comment.