Skip to content

Commit 63ca7a2

Browse files
committed
refactor: await importMetaResolve redundant
1 parent c74788e commit 63ca7a2

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

snippets/test-intro-zoe.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ test('intro to zoe', async t => {
3434
});
3535

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

133133
test('intro to zoe - contract-format', async t => {
134134
const { zoeService: zoe } = makeZoeKit(makeFakeVatAdmin().admin);
135-
const atomicSwapUrl = await importMetaResolve(
135+
const atomicSwapUrl = importMetaResolve(
136136
'./contract-format.js',
137137
import.meta.url,
138138
);

snippets/tools/setupZcfTest.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { makeZoeKit } from '@agoric/zoe';
88
import { makeFakeVatAdmin } from '@agoric/zoe/tools/fakeVatAdmin.js';
99

1010
export const setupZCFTest = async (issuerKeywordRecord, terms) => {
11-
const contractUrl = await importMetaResolve(
11+
const contractUrl = importMetaResolve(
1212
'./zcfTesterContract.js',
1313
import.meta.url,
1414
);

snippets/zoe/contracts/test-callSpread.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ test('callSpread, mid-strike', async t => {
3333
zoe,
3434
brands,
3535
} = setup();
36-
const contractUrl = await importMetaResolve(
36+
const contractUrl = importMetaResolve(
3737
'@agoric/zoe/src/contracts/callSpread/fundedCallSpread.js',
3838
import.meta.url,
3939
);
@@ -163,7 +163,7 @@ test('pricedCallSpread, mid-strike', async t => {
163163
zoe,
164164
brands,
165165
} = setup();
166-
const contractUrl = await importMetaResolve(
166+
const contractUrl = importMetaResolve(
167167
'@agoric/zoe/src/contracts/callSpread/pricedCallSpread.js',
168168
import.meta.url,
169169
);

snippets/zoe/contracts/test-loan.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import url from 'url';
2020
test('loan contract', async t => {
2121
const { zoeService: zoe } = makeZoeKit(makeFakeVatAdmin().admin);
2222

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

4242
// Create autoswap installation and instance
43-
const autoswapUrl = await importMetaResolve(
43+
const autoswapUrl = importMetaResolve(
4444
'@agoric/zoe/src/contracts/autoswap.js',
4545
import.meta.url,
4646
);

snippets/zoe/contracts/test-oracle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test('oracle contract', async t => {
1717
const { zoeService: zoe } = makeZoeKit(makeFakeVatAdmin().admin);
1818

1919
// #region bundle
20-
const contractUrl = await importMetaResolve(
20+
const contractUrl = importMetaResolve(
2121
'@agoric/zoe/src/contracts/oracle.js',
2222
import.meta.url,
2323
);

0 commit comments

Comments
 (0)