@@ -99,7 +99,7 @@ pub fn derive_vrf_accounts(
9999
100100 let account_public_key =
101101 SigningKey :: from_secret_scalar ( source_private_key) . verifying_key ( ) . scalar ( ) ;
102- let vrf_account_class_hash = vrf_account_class_hash ( ) ? ;
102+ let vrf_account_class_hash = katana_contracts :: vrf :: CartridgeVrfAccount :: HASH ;
103103 // When using UDC with unique=0 (non-unique deployment), the deployer_address
104104 // used in address computation is 0, not the actual deployer or UDC address.
105105 let vrf_account_address = get_contract_address (
@@ -136,7 +136,7 @@ pub async fn bootstrap_vrf(
136136 let vrf_account_address = derived. vrf_account_address ;
137137 let account_public_key =
138138 SigningKey :: from_secret_scalar ( bootstrapper_account_private_key) . verifying_key ( ) . scalar ( ) ;
139- let vrf_account_class_hash = vrf_account_class_hash ( ) ? ;
139+ let vrf_account_class_hash = katana_contracts :: vrf :: CartridgeVrfAccount :: HASH ;
140140
141141 // Create the source account for transactions
142142 let signer =
@@ -204,7 +204,7 @@ pub async fn bootstrap_vrf(
204204 . map_err ( |e| anyhow ! ( "failed to set VRF public key: {e}" ) ) ?;
205205
206206 // Deploy VRF consumer
207- let vrf_consumer_class_hash = vrf_consumer_class_hash ( ) ? ;
207+ let vrf_consumer_class_hash = katana_contracts :: vrf :: CartridgeVrfConsumer :: HASH ;
208208 // When using UDC with unique=0 (non-unique deployment), the deployer_address
209209 // used in address computation is 0, not the actual deployer or UDC address.
210210 let vrf_consumer_address = get_contract_address (
@@ -237,16 +237,6 @@ pub async fn bootstrap_vrf(
237237 } )
238238}
239239
240- /// Get the class hash of the VRF account contract.
241- pub fn vrf_account_class_hash ( ) -> Result < Felt > {
242- Ok ( katana_contracts:: vrf:: CartridgeVrfAccount :: HASH )
243- }
244-
245- /// Get the class hash of the VRF consumer contract.
246- pub fn vrf_consumer_class_hash ( ) -> Result < Felt > {
247- Ok ( katana_contracts:: vrf:: CartridgeVrfConsumer :: HASH )
248- }
249-
250240// ============================================================================
251241// Internal helpers
252242// ============================================================================
0 commit comments