From 0c76b4f5b9cc1ded17954266153f0af621414fae Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Thu, 22 Feb 2024 12:49:30 -0800 Subject: [PATCH] fix: swap tests --- packages/swap/tests/fixtures/mainnet/configs.ts | 2 +- packages/swap/tests/oneInch.test.ts | 2 +- packages/swap/tests/paraswap.test.ts | 2 +- packages/swap/tests/zerox.test.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/swap/tests/fixtures/mainnet/configs.ts b/packages/swap/tests/fixtures/mainnet/configs.ts index 15d0e8563..6c6d3d8b2 100644 --- a/packages/swap/tests/fixtures/mainnet/configs.ts +++ b/packages/swap/tests/fixtures/mainnet/configs.ts @@ -2,7 +2,7 @@ import { NetworkNames } from "@enkryptcom/types"; import { isAddress, toBN } from "web3-utils"; import { NetworkType, TokenType, TokenTypeTo } from "../../../src/types"; -const amount = toBN("10000000000000000000"); +const amount = toBN("100000000000000000000"); const fromAddress = "0x6B175474E89094C44Da98b954EedeAC495271d0F"; const toAddress = "0x255d4D554325568A2e628A1E93120EbA1157C07e"; diff --git a/packages/swap/tests/oneInch.test.ts b/packages/swap/tests/oneInch.test.ts index dbea7668a..567e53031 100644 --- a/packages/swap/tests/oneInch.test.ts +++ b/packages/swap/tests/oneInch.test.ts @@ -71,7 +71,7 @@ describe("OneInch Provider", () => { `0x095ea7b3000000000000000000000000${ONEINCH_APPROVAL_ADDRESS.replace( "0x", "" - )}000000000000000000000000000000000000000000000000${numberToHex( + )}00000000000000000000000000000000000000000000000${numberToHex( amount ).replace("0x", "")}` ); diff --git a/packages/swap/tests/paraswap.test.ts b/packages/swap/tests/paraswap.test.ts index eb33d22f1..14a80113b 100644 --- a/packages/swap/tests/paraswap.test.ts +++ b/packages/swap/tests/paraswap.test.ts @@ -73,7 +73,7 @@ describe("Paraswap Provider", () => { `0x095ea7b3000000000000000000000000${PARASWAP_APPROVAL_ADDRESS.replace( "0x", "" - )}000000000000000000000000000000000000000000000000${numberToHex( + )}00000000000000000000000000000000000000000000000${numberToHex( amount ).replace("0x", "")}` ); diff --git a/packages/swap/tests/zerox.test.ts b/packages/swap/tests/zerox.test.ts index 754b68802..4bbb8fd61 100644 --- a/packages/swap/tests/zerox.test.ts +++ b/packages/swap/tests/zerox.test.ts @@ -72,7 +72,7 @@ describe("Zerox Provider", () => { `0x095ea7b3000000000000000000000000${ZEROX_APPROVAL.replace( "0x", "" - )}000000000000000000000000000000000000000000000000${numberToHex( + )}00000000000000000000000000000000000000000000000${numberToHex( amount ).replace("0x", "")}` );