diff --git a/core/lib/zksync_core/src/lib.rs b/core/lib/zksync_core/src/lib.rs index 1baae27c3b3..4a1d57b45cd 100644 --- a/core/lib/zksync_core/src/lib.rs +++ b/core/lib/zksync_core/src/lib.rs @@ -103,6 +103,11 @@ pub mod sync_layer; pub mod temp_config_store; mod utils; +/// Returns the selector of the `getPubdataPriceMode()`. +fn get_pubdata_price_mode_selector() -> Bytes { + serde_json::from_str::(r#""0x252e5966""#).unwrap() +} + /// Inserts the initial information about zkSync tokens into the database. pub async fn genesis_init( postgres_config: &PostgresConfig, @@ -636,7 +641,7 @@ pub async fn initialize_components( .call( CallRequest::builder() .to((&contracts_config).executor_facet_addr.clone()) - .data(serde_json::from_str::(r#""0x252e5966""#).unwrap()) // The selector of "getPubdataPriceMode()" + .data(get_pubdata_price_mode_selector()) .build(), ) .await