feat: EVM simulator as optional for the server #276
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What ❔
List of changes:
use_evm_simulator
and make it configurable from a.toml
file.GAS_TEST_SYSTEM_CONTRACTS
we check if the evm simulator is on and used the default account bytecode hash and bytecode if it's not.BaseSystemContracts
struct, we check if the evm simulator is on and used the default account bytecode hash and bytecode if it's not.evm_deploy_tracer
optional in the default tracers and use it if the evm simulator is enabled.EVM_SIMULATOR_HASH
constant now checks if the evm simulator is on and used the default account bytecode hash and bytecode if it's not.SYSTEM_CONTRACTS
vec now checks if evm simulator is and reads the bytecode of theEVM_GAS_MANAGER
but skips it if it's off, same for theget_system_smart_contracts_from_dir
function.get_multicall_data
function.get_evm_simulator_bytecode_hash
optional in theZkSyncFunctions
struct and use it if the evm simulator is enabled.Why ❔
We need to be able to run
zksync-era
without the evm simulator contract and keep everything working.Checklist
zk fmt
andzk lint
.