Skip to content

Commit

Permalink
refactor: await importMetaResolve redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Feb 13, 2025
1 parent c74788e commit 63ca7a2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions snippets/test-intro-zoe.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test('intro to zoe', async t => {
});

// #region bundle
const atomicSwapUrl = await importMetaResolve(
const atomicSwapUrl = importMetaResolve(
'@agoric/zoe/src/contracts/atomicSwap.js',
import.meta.url,
);
Expand Down Expand Up @@ -132,7 +132,7 @@ test('intro to zoe', async t => {

test('intro to zoe - contract-format', async t => {
const { zoeService: zoe } = makeZoeKit(makeFakeVatAdmin().admin);
const atomicSwapUrl = await importMetaResolve(
const atomicSwapUrl = importMetaResolve(
'./contract-format.js',
import.meta.url,
);
Expand Down
2 changes: 1 addition & 1 deletion snippets/tools/setupZcfTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { makeZoeKit } from '@agoric/zoe';
import { makeFakeVatAdmin } from '@agoric/zoe/tools/fakeVatAdmin.js';

export const setupZCFTest = async (issuerKeywordRecord, terms) => {
const contractUrl = await importMetaResolve(
const contractUrl = importMetaResolve(
'./zcfTesterContract.js',
import.meta.url,
);
Expand Down
4 changes: 2 additions & 2 deletions snippets/zoe/contracts/test-callSpread.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test('callSpread, mid-strike', async t => {
zoe,
brands,
} = setup();
const contractUrl = await importMetaResolve(
const contractUrl = importMetaResolve(
'@agoric/zoe/src/contracts/callSpread/fundedCallSpread.js',
import.meta.url,
);
Expand Down Expand Up @@ -163,7 +163,7 @@ test('pricedCallSpread, mid-strike', async t => {
zoe,
brands,
} = setup();
const contractUrl = await importMetaResolve(
const contractUrl = importMetaResolve(
'@agoric/zoe/src/contracts/callSpread/pricedCallSpread.js',
import.meta.url,
);
Expand Down
4 changes: 2 additions & 2 deletions snippets/zoe/contracts/test-loan.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import url from 'url';
test('loan contract', async t => {
const { zoeService: zoe } = makeZoeKit(makeFakeVatAdmin().admin);

const contractUrl = await importMetaResolve(
const contractUrl = importMetaResolve(
'@agoric/zoe/src/contracts/loan/index.js',
import.meta.url,
);
Expand All @@ -40,7 +40,7 @@ test('loan contract', async t => {
} = makeIssuerKit('simoleans');

// Create autoswap installation and instance
const autoswapUrl = await importMetaResolve(
const autoswapUrl = importMetaResolve(
'@agoric/zoe/src/contracts/autoswap.js',
import.meta.url,
);
Expand Down
2 changes: 1 addition & 1 deletion snippets/zoe/contracts/test-oracle.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('oracle contract', async t => {
const { zoeService: zoe } = makeZoeKit(makeFakeVatAdmin().admin);

// #region bundle
const contractUrl = await importMetaResolve(
const contractUrl = importMetaResolve(
'@agoric/zoe/src/contracts/oracle.js',
import.meta.url,
);
Expand Down

0 comments on commit 63ca7a2

Please sign in to comment.