Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features/hdev 345 unit tests mainnet #29

Draft
wants to merge 31 commits into
base: develop
Choose a base branch
from

Conversation

barryhalo
Copy link
Contributor

Description of Changes

Unit tests for different network forks, mainnet, polygon and kovan

Link to Jira Ticket

Developer Checklist:

  • I have followed the guidelines in our Contributing document
  • This PR has a corresponding JIRA ticket
  • My branch conforms with our naming convention i.e. features/HDEV-XXX-description
  • All files have appropriate file headers and documentation
  • I have written new tests for your core changes, as applicable
  • I have successfully ran tests locally

Reviewers Checklist:

  • Code is readable and understandable; any unclear parts have explanations
  • UI/UX changes match the corresponding figma/other design resources, if applicable
  • I have successfully ran tests locally

Comment on lines +17 to +29
if (process.env.NETWORK === 'mainnet') {
RPC_URL = `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_PROJECT_ID}`;
BLOCK_NO = CONFIG.BLOCK_NO;
} else if (process.env.NETWORK === 'matic') {
RPC_URL = `https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_PROJECT_ID}`;
BLOCK_NO = CONFIG.BLOCK_NO;
} else if (process.env.NETWORK === 'kovan') {
RPC_URL = `https://eth-kovan.alchemyapi.io/v2/${ALCHEMY_PROJECT_ID}`;
BLOCK_NO = CONFIG.BLOCK_NO;
} else {
RPC_URL = `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_PROJECT_ID}`;
BLOCK_NO = CONFIG.BLOCK_NO;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use a switch instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants