Skip to content

Commit

Permalink
fix: new one after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
olehbairak committed Mar 12, 2024
1 parent bd1e328 commit 834384b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions packages/integration-tests/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,7 @@ export enum BlockExplorer {
baseUrl = "http://localhost:3010",
localNetwork = "/?network=local",
}

export enum Contracts {
greeterContractSepolia = "0x9c6D777A35D127f17eB28B75F80Bb7486118FbE0",
}
7 changes: 4 additions & 3 deletions packages/integration-tests/tests/api/contracts.test.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -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");

Expand All @@ -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");

Expand All @@ -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");

Expand Down
4 changes: 2 additions & 2 deletions packages/integration-tests/tests/api/tokens.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 834384b

Please sign in to comment.