diff --git a/packages/integration-tests/src/constants.ts b/packages/integration-tests/src/constants.ts index e46f4a17c5..5b9ac59a35 100644 --- a/packages/integration-tests/src/constants.ts +++ b/packages/integration-tests/src/constants.ts @@ -83,3 +83,7 @@ export enum BlockExplorer { baseUrl = "http://localhost:3010", localNetwork = "/?network=local", } + +export enum Contracts { + greeterContractSepolia = "0x9c6D777A35D127f17eB28B75F80Bb7486118FbE0", +} diff --git a/packages/integration-tests/tests/api/contracts.test.ts b/packages/integration-tests/tests/api/contracts.test.ts index 3b7ebe7cb9..6dbe8d260c 100644 --- a/packages/integration-tests/tests/api/contracts.test.ts +++ b/packages/integration-tests/tests/api/contracts.test.ts @@ -1,5 +1,6 @@ import { localConfig } from "../../src/config"; import { Buffer, Path, Wallets } from "../../src/constants"; +import { Contracts } from "../../src/constants"; import { Helper } from "../../src/helper"; import { Playbook } from "../../src/playbook/playbook"; @@ -23,7 +24,7 @@ describe("API module: Contract", () => { //id1851 @Sepolia it("Verify /api?module=contract&action=checkverifystatus response", async () => { - await helper.retryTestAction(async () => { + await helper.runRetriableTestAction(async () => { apiRoute = `/api?module=contract&action=checkverifystatus&guid=3177`; response = await helper.performBlockExplorerApiGetRequest(apiRoute, "sepolia"); @@ -36,7 +37,7 @@ describe("API module: Contract", () => { //id1695 @Sepolia it("Verify /api?module=contract&action=getabi response", async () => { - await helper.retryTestAction(async () => { + await helper.runRetriableTestAction(async () => { apiRoute = `/api?module=contract&action=getabi&address=${Contracts.greeterContractSepolia}`; response = await helper.performBlockExplorerApiGetRequest(apiRoute, "sepolia"); @@ -49,7 +50,7 @@ describe("API module: Contract", () => { //id1802 @Sepolia it("Verify /api?module=contract&action=getsourcecode response", async () => { - await helper.retryTestAction(async () => { + await helper.runRetriableTestAction(async () => { apiRoute = `/api?module=contract&action=getsourcecode&address=${Contracts.greeterContractSepolia}`; response = await helper.performBlockExplorerApiGetRequest(apiRoute, "sepolia"); diff --git a/packages/integration-tests/tests/api/tokens.test.ts b/packages/integration-tests/tests/api/tokens.test.ts index 19f9941fde..27337b8461 100644 --- a/packages/integration-tests/tests/api/tokens.test.ts +++ b/packages/integration-tests/tests/api/tokens.test.ts @@ -114,8 +114,8 @@ describe("Tokens", () => { //id1907 it("Verify /api?module=token&action=tokeninfo response", async () => { - await helper.retryTestAction(async () => { - apiRoute = `/api?module=token&action=tokeninfo&contractaddress=${Token.ETHER_ERC20_Address}`; + await helper.runRetriableTestAction(async () => { + apiRoute = `/api?module=token&action=tokeninfo&contractaddress=${Token.ERC20AddressETH}`; response = await helper.performBlockExplorerApiGetRequest(apiRoute); expect(response.status).toBe(200);