Skip to content

Commit

Permalink
Chore: merge aptos branch
Browse files Browse the repository at this point in the history
  • Loading branch information
zk-steve authored and Tranduy1dol committed Oct 16, 2024
1 parent 1c65d17 commit 0330157
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Rust Test & Coverage

on:
Expand Down
4 changes: 4 additions & 0 deletions crates/orchestrator/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ pub async fn build_da_client(settings_provider: &impl Settings) -> Box<dyn DaCli
let config = AptosDaConfig::new_from_env();
Box::new(config.build_client().await)
}
"aptos" => {
let config = AptosDaConfig::new_from_env();
Box::new(config.build_client().await)
}
_ => panic!("Unsupported DA layer"),
}
}
Expand Down
2 changes: 0 additions & 2 deletions crates/settlement-clients/aptos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ aptos-testcontainer = { workspace = true }
async-trait = { workspace = true }
c-kzg = { workspace = true }
color-eyre = { workspace = true }
c-kzg = { workspace = true }
dotenvy = { workspace = true }
hex = { workspace = true }
lazy_static = { workspace = true }
Expand All @@ -22,7 +21,6 @@ once_cell = { workspace = true }
settlement-client-interface = { workspace = true }
tokio = { workspace = true }
utils = { workspace = true }
lazy_static = { workspace = true }

[dev-dependencies]
test-log = { workspace = true }
6 changes: 5 additions & 1 deletion crates/settlement-clients/ethereum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ impl EthereumSettlementClient {
&KZG_SETTINGS,
)?;

if !eval { Err(eyre!("ERROR : Assertion failed, not able to verify the proof.")) } else { Ok(kzg_proof) }
if !eval {
Err(eyre!("ERROR : Assertion failed, not able to verify the proof."))
} else {
Ok(kzg_proof)
}
}
}

Expand Down

0 comments on commit 0330157

Please sign in to comment.