Skip to content

Commit

Permalink
fix: new version
Browse files Browse the repository at this point in the history
  • Loading branch information
olehbairak committed Mar 7, 2024
1 parent 9ff2fd0 commit ac55ca4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/integration-tests/src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class Helper {
return new Promise((resolve) => setTimeout(resolve, ms));
}

async performGETrequest(apiRoute: string, network?: string) {
async performBlockExplorerApiGetRequest(apiRoute: string, network?: string) {
if (network === `sepolia`) {
return request(environment.blockExplorerSepoliaAPI).get(apiRoute);
} else if (!network || network === `local`) {
Expand Down
2 changes: 1 addition & 1 deletion packages/integration-tests/tests/api/tokens.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ describe("Tokens", () => {
it("Verify /api?module=token&action=tokeninfo response", async () => {
await helper.retryTestAction(async () => {
apiRoute = `/api?module=token&action=tokeninfo&contractaddress=${Token.ETHER_ERC20_Address}`;
response = await helper.performGETrequest(apiRoute);
response = await helper.performBlockExplorerApiGetRequest(apiRoute);

expect(response.status).toBe(200);
expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" }));
Expand Down

0 comments on commit ac55ca4

Please sign in to comment.