-
Notifications
You must be signed in to change notification settings - Fork 69
feat(l2): read test variables from env #3148
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
Conversation
Lines of code reportTotal lines added: Detailed view
|
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.
Just one small suggestion
let deposit_value = U256::from(100000000000000000000u128); | ||
let deposit_value = std::env::var("INTEGRATION_TEST_DEPOSIT_VALUE") | ||
.map(|value| U256::from_dec_str(&value).expect("Invalid deposit value")) | ||
.unwrap_or(U256::from(100000000000000000000u128)); |
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.
Maybe we could make a constant for this value since it is used in more than one place
Motivation
We want to run the integration test in our staging server, for this we need to be able to set some of the constants to different values than the defaults
Description