Skip to content

Commit

Permalink
Fix variable name typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sisou committed Jan 29, 2024
1 parent 6c22c0b commit fe21b3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ethers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand All @@ -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) => {
Expand Down

0 comments on commit fe21b3b

Please sign in to comment.