Skip to content

Commit

Permalink
chore(batcher): impl default to ExecutionConfig for addition to Batch…
Browse files Browse the repository at this point in the history
…erConfig
  • Loading branch information
ayeletstarkware committed Oct 9, 2024
1 parent 0a090fa commit 8a69180
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions crates/batcher/src/block_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,20 @@ pub struct ExecutionConfig {
pub versioned_constants_overrides: VersionedConstantsOverrides,
}

impl Default for ExecutionConfig {
fn default() -> Self {
Self {
chain_info: ChainInfo::default(),
execute_config: TransactionExecutorConfig::default(),
bouncer_config: BouncerConfig::default(),
sequencer_address: ContractAddress::default(),
use_kzg_da: true,
tx_chunk_size: usize::default(),
versioned_constants_overrides: VersionedConstantsOverrides::default(),
}
}
}

#[async_trait]
impl BlockBuilderTrait for BlockBuilder {
async fn build_block(
Expand Down
2 changes: 1 addition & 1 deletion crates/blockifier/src/versioned_constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ pub struct ResourcesByVersion {
pub deprecated_resources: ResourcesParams,
}

#[derive(Clone)]
#[derive(Clone, Default)]
pub struct VersionedConstantsOverrides {
pub validate_max_n_steps: u32,
pub max_recursion_depth: usize,
Expand Down

0 comments on commit 8a69180

Please sign in to comment.