From da1ba0d948643596a54a01b27263e5ca39ef1dd1 Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Tue, 21 Jan 2025 14:34:26 -0600 Subject: [PATCH] fixup! test(multichain): fast-usdc performance --- multichain-testing/test/fast-usdc/fast-usdc.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/multichain-testing/test/fast-usdc/fast-usdc.test.ts b/multichain-testing/test/fast-usdc/fast-usdc.test.ts index 8e8bb23e206..146b1a8f775 100644 --- a/multichain-testing/test/fast-usdc/fast-usdc.test.ts +++ b/multichain-testing/test/fast-usdc/fast-usdc.test.ts @@ -4,7 +4,6 @@ import { makeBlocksIterable, queryBlock, } from '@agoric/client-utils/src/chain.js'; -import { makeAPI } from '@agoric/client-utils/src/grpc-rest-api.js'; import { encodeAddressHook } from '@agoric/cosmic-proto/address-hooks.js'; import type { QueryBalanceResponseSDKType } from '@agoric/cosmic-proto/cosmos/bank/v1beta1/query.js'; import { AmountMath } from '@agoric/ertp'; @@ -53,6 +52,7 @@ const makeTestContext = async t => { faucetTools, provisionSmartWallet, startContract, + useChain, } = common; await deleteTestKeys(accounts).catch(); const wallets = await setupTestKeys(accounts, values(oracleMnemonics)); @@ -94,7 +94,7 @@ const makeTestContext = async t => { const feeUser = await provisionSmartWallet(wallets['feeDest'], { BLD: 100n }); const { vstorageClient } = common; - const api = makeAPI({ fetch }); + const api = makeQueryClient(await useChain('agoric').getRestEndpoint()); const now = () => Date.now(); const blockIter = makeBlocksIterable({ api,