Skip to content

Commit bed124a

Browse files
committed
test: compat with client-utils changes
1 parent d977988 commit bed124a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

a3p-integration/proposals/f:fast-usdc/deploy.test.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
// @ts-check
2-
/* global globalThis */
2+
/* eslint-env node */
33
import test from 'ava';
44
import '@endo/init/legacy.js'; // axios compat
5-
import { makeVstorageKit } from '@agoric/client-utils';
5+
import { makeSmartWalletKit } from '@agoric/client-utils';
66

7-
const io = { fetch: globalThis.fetch };
7+
const io = {
8+
delay: ms => new Promise(resolve => setTimeout(() => resolve(undefined), ms)),
9+
fetch: global.fetch,
10+
};
811
const networkConfig = {
912
rpcAddrs: ['http://0.0.0.0:26657'],
1013
chainName: 'agoriclocal',
1114
};
1215

1316
test('fastUsdc is in agoricNames.instance', async t => {
14-
const { agoricNames } = await makeVstorageKit(io, networkConfig);
17+
const { agoricNames } = await makeSmartWalletKit(io, networkConfig);
1518

1619
t.log('agoricNames.instance keys', Object.keys(agoricNames.instance));
1720
t.truthy(agoricNames.instance.fastUsdc);

0 commit comments

Comments
 (0)