Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: clippy, run context #273

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion proposer/succinct/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ async fn request_mock_span_proof(
// Start the server and native client with a timeout.
// Note: Ideally, the server should call out to a separate process that executes the native
// host, and return an ID that the client can poll on to check if the proof was submitted.
let mut witnessgen_executor = WitnessGenExecutor::default();
let mut witnessgen_executor = WitnessGenExecutor::new(WITNESSGEN_TIMEOUT, RunContext::Docker);
witnessgen_executor.spawn_witnessgen(&host_cli).await?;
// Log any errors from running the witness generation process.
let res = witnessgen_executor.flush().await;
Expand Down
19 changes: 8 additions & 11 deletions scripts/utils/bin/fetch_rollup_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,14 @@ struct L2OOConfig {
fn get_address(env_var: &str) -> String {
let private_key = env::var("PRIVATE_KEY").unwrap_or_else(|_| B256::ZERO.to_string());

env::var(env_var).map_or_else(
|_| {
if private_key == B256::ZERO.to_string() {
Address::ZERO.to_string()
} else {
let signer: PrivateKeySigner = private_key.parse().unwrap();
signer.address().to_string()
}
},
|addr| addr,
)
env::var(env_var).unwrap_or_else(|_| {
if private_key == B256::ZERO.to_string() {
Address::ZERO.to_string()
} else {
let signer: PrivateKeySigner = private_key.parse().unwrap();
signer.address().to_string()
}
})
}

/// Update the L2OO config with the rollup config hash and other relevant data before the contract is deployed.
Expand Down
Loading