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

feat(gateway): add checks that the server version is correct #3681

Merged
Merged
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
11 changes: 11 additions & 0 deletions zkstack_cli/crates/zkstack/src/commands/dev/commands/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,17 @@ pub async fn check_chain_readiness(
}
};

match l2_client.supports_unsafe_deposit_filter().await {
Ok(result) => {
if !result {
anyhow::bail!("The chain does not support unsafe deposit filtering! Please update your server version to the latest one.")
}
}
Err(e) => {
anyhow::bail!("Failed to check that the chain supports unsafe deposit filtering: {:#?}. Please update your server version to the latest one.", e);
}
}

let diamond_proxy_addr = l2_client.get_main_contract().await?;

if inflight_txs_count != 0 {
Expand Down
Loading