From 84dbc4cf572236205632ae54e2c519f2b55d9815 Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Tue, 6 Feb 2024 12:11:00 +0100 Subject: [PATCH] fix: new one --- packages/integration-tests/tests/api/accounts.test.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index 07d9136ec9..3dfd3fbb5d 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -78,7 +78,7 @@ describe("API module: Account", () => { await helper.retryTestAction(async () => { const blocks = await request(environment.blockExplorerAPI).get("/blocks"); const blockNumber = blocks.body.items[0].number; - apiRoute = `/api?module=account&action=txlist&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&address=${Wallets.richWalletAddress}`; + apiRoute = `/api?module=account&action=txlist&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=0&address=${Wallets.richWalletAddress}`; response = await helper.performGETrequest(apiRoute); expect(response.status).toBe(200); @@ -119,7 +119,7 @@ describe("API module: Account", () => { await helper.retryTestAction(async () => { const blocks = await request(environment.blockExplorerAPI).get("/blocks"); const blockNumber = blocks.body.items[0].number; - apiRoute = `/api?module=account&action=txlistinternal&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&address=${Wallets.richWalletAddress}`; + apiRoute = `/api?module=account&action=txlistinternal&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=0&address=${Wallets.richWalletAddress}`; response = await helper.performGETrequest(apiRoute); expect(response.status).toBe(200); @@ -176,8 +176,9 @@ describe("API module: Account", () => { await helper.retryTestAction(async () => { const blocks = await request(environment.blockExplorerAPI).get("/blocks"); const blockNumber = blocks.body.items[0].number; - apiRoute = `/api?module=account&action=tokentx&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&contractaddress=${Token.ETHER_ERC20_Address}&address=${Wallets.richWalletAddress}`; + apiRoute = `/api?module=account&action=tokentx&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=0&contractaddress=${Token.ETHER_ERC20_Address}&address=${Wallets.richWalletAddress}`; response = await helper.performGETrequest(apiRoute); + console.log(apiRoute); expect(response.status).toBe(200); expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); @@ -216,7 +217,7 @@ describe("API module: Account", () => { const blockNumber = blocks.body.items[0].number; const nftAddress = await helper.getStringFromFile(bufferFile + Buffer.NFTtoL2); console.log(nftAddress); - apiRoute = `/api?module=account&action=tokennfttx&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&contractaddress=${nftAddress}&address=${nftAddress}`; + apiRoute = `/api?module=account&action=tokennfttx&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=0&contractaddress=${nftAddress}&address=${nftAddress}`; response = await helper.performGETrequest(apiRoute); expect(response.status).toBe(200);