-
Notifications
You must be signed in to change notification settings - Fork 5k
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
refactor: make sure to use static constant variables for accounts in fixture-builder.js #29786
base: main
Are you sure you want to change the base?
Conversation
…fixture-builder.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
test/e2e/fixture-builder.js
Outdated
const { CHAIN_IDS } = require('../../shared/constants/network'); | ||
const { ACCOUNT_1, ACCOUNT_2 } = require('./helpers'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, this import is causing problems. It seems that this file is being pulled into the build somehow, and adding this import is resulting in some environment variables being referenced that are not defined, causing a build failure.
Why is this part of the build 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could resolve the error by moving these account constants from helpers
to a constants file. That will ensure no additional environment variable references are brought in.
But this file being in the application bundle seems like a mistake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did suggested change in 73b8c72 🤞🏾
-- refactor: make sure to use static constant variables for accounts in fixture-builder.js;
Description
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist