@@ -206,27 +206,27 @@ impl ConfigOverride {
206
206
#[ derive( Debug , Serialize ) ]
207
207
pub struct DeploymentConfigOverride {
208
208
#[ serde( rename = "base_layer_config.starknet_contract_address" ) ]
209
- starknet_contract_address : & ' static str ,
210
- chain_id : & ' static str ,
211
- eth_fee_token_address : & ' static str ,
212
- starknet_url : & ' static str ,
213
- strk_fee_token_address : & ' static str ,
209
+ starknet_contract_address : String ,
210
+ chain_id : String ,
211
+ eth_fee_token_address : String ,
212
+ starknet_url : String ,
213
+ strk_fee_token_address : String ,
214
214
}
215
215
216
216
impl DeploymentConfigOverride {
217
- pub const fn new (
218
- starknet_contract_address : & ' static str ,
219
- chain_id : & ' static str ,
220
- eth_fee_token_address : & ' static str ,
221
- starknet_url : & ' static str ,
222
- strk_fee_token_address : & ' static str ,
217
+ pub fn new (
218
+ starknet_contract_address : impl ToString ,
219
+ chain_id : impl ToString ,
220
+ eth_fee_token_address : impl ToString ,
221
+ starknet_url : impl ToString ,
222
+ strk_fee_token_address : impl ToString ,
223
223
) -> Self {
224
224
Self {
225
- starknet_contract_address,
226
- chain_id,
227
- eth_fee_token_address,
228
- starknet_url,
229
- strk_fee_token_address,
225
+ starknet_contract_address : starknet_contract_address . to_string ( ) ,
226
+ chain_id : chain_id . to_string ( ) ,
227
+ eth_fee_token_address : eth_fee_token_address . to_string ( ) ,
228
+ starknet_url : starknet_url . to_string ( ) ,
229
+ strk_fee_token_address : strk_fee_token_address . to_string ( ) ,
230
230
}
231
231
}
232
232
}
0 commit comments