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

feat: adapt zksync_env_config::eth_sender tests for running both in Validium mode and Rollup mode #142

Merged

Conversation

toni-calvin
Copy link

@toni-calvin toni-calvin commented Feb 16, 2024

Closes #134

Changes Made

This pull request introduces enhancements to the existing test suite for the ETHSenderConfig in the env_config crate. The primary goal is to create dedicated configurations for Rollup and Validium scenarios and provide specific tests for each.

Key Modifications

New Test Configurations:

  • Two new functions, rollup_expected_config and validium_expected_config, have been added to generate configurations tailored for Rollup and Validium use cases.
  • Additional Test Methods: Two new test methods, rollup_from_env and validium_from_env, have been implemented to specifically test Rollup and Validium configurations, respectively.
  • Validium Configuration Adjustment: The validium_expected_config function now sets the l1_gas_per_pubdata_byte field to 0 for Validium, reflecting the required Validium configuration.

How to test

zk test rust --package zksync_env_config --lib -j 1 -- eth_sender::tests

@toni-calvin toni-calvin changed the title add validium env test feat: adapt env_eth_sender tests for running both in Validium mode and Rollup mode #120 Feb 16, 2024
@toni-calvin toni-calvin changed the title feat: adapt env_eth_sender tests for running both in Validium mode and Rollup mode #120 feat: adapt zksync_env_config::eth_sender tests for running both in Validium mode and Rollup mode #120 Feb 16, 2024
@toni-calvin toni-calvin changed the title feat: adapt zksync_env_config::eth_sender tests for running both in Validium mode and Rollup mode #120 feat: adapt zksync_env_config::eth_sender tests for running both in Validium mode and Rollup mode Feb 16, 2024
Copy link
Collaborator

@ilitteri ilitteri left a comment

Choose a reason for hiding this comment

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

LGTM! Tests are passing on my side. For the next time remember to show how to run the tests in the PRs description

@ilitteri ilitteri merged commit 08fa235 into feat_validium_pubdata_abstraction Feb 16, 2024
7 of 11 checks passed
@ilitteri ilitteri deleted the adapt-env-eth_sender-tests-validium branch February 16, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adapt tests for testing both with Rollup and Validium mode in zksync_env_config::eth_sender module
2 participants