From fe21b3b56f490c140ef745c90414b360b7f9b584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren?= Date: Mon, 29 Jan 2024 16:26:38 +0100 Subject: [PATCH] Fix variable name typo --- src/ethers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ethers.ts b/src/ethers.ts index d8091ef7f..cb572109c 100644 --- a/src/ethers.ts +++ b/src/ethers.ts @@ -1175,7 +1175,7 @@ export async function receiptToTransaction( const { config } = useConfig(); const client = await getPolygonClient(); - const [tokenContract, transferContrat] = token === config.usdc.nativeUsdcContract + const [tokenContract, transferContract] = token === config.usdc.nativeUsdcContract ? [client.nativeUsdc, client.nativeUsdcTransfer] : [client.usdc, client.usdcTransfer]; @@ -1185,7 +1185,7 @@ export async function receiptToTransaction( const [htlcContract, poolAddress] = await Promise.all([ token === config.usdc.nativeUsdcContract ? getNativeHtlcContract() : getHtlcContract(), - getPoolAddress(transferContrat, token), + getPoolAddress(transferContract, token), ]); const logs = receipt.logs.map((log) => {