diff --git a/Cargo.lock b/Cargo.lock index 4003b2ef..2bc75ac1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2303,6 +2303,7 @@ dependencies = [ "console_error_panic_hook", "ethers", "execution", + "eyre", "hex", "serde", "serde-wasm-bindgen", diff --git a/client/src/client.rs b/client/src/client.rs index 8529af6f..22ba4eee 100644 --- a/client/src/client.rs +++ b/client/src/client.rs @@ -217,6 +217,7 @@ impl ClientBuilder { fallback, load_external_fallback, strict_checkpoint_age, + database_type: None, }; Client::::new(config) diff --git a/config/src/config.rs b/config/src/config.rs index 05a083d7..fcafcdb7 100644 --- a/config/src/config.rs +++ b/config/src/config.rs @@ -30,6 +30,7 @@ pub struct Config { pub fallback: Option, pub load_external_fallback: bool, pub strict_checkpoint_age: bool, + pub database_type: Option, } impl Config { diff --git a/execution/src/execution.rs b/execution/src/execution.rs index d96fb51d..ffcc124e 100644 --- a/execution/src/execution.rs +++ b/execution/src/execution.rs @@ -283,7 +283,7 @@ impl ExecutionClient { } async fn verify_logs(&self, logs: &[Log]) -> Result<()> { - for (_pos, log) in logs.iter().enumerate() { + for log in logs.iter() { // For every log // Get the hash of the tx that generated it let tx_hash = log diff --git a/helios-ts/Cargo.toml b/helios-ts/Cargo.toml index 16f3c5c0..1f46edbf 100644 --- a/helios-ts/Cargo.toml +++ b/helios-ts/Cargo.toml @@ -15,6 +15,8 @@ wasm-bindgen-test = "0.3.0" serde-wasm-bindgen = "0.4.5" console_error_panic_hook = "0.1.7" +eyre.workspace = true + ethers = "2.0.2" hex = "0.4.3" serde = { version = "1.0.143", features = ["derive"] } @@ -26,9 +28,7 @@ consensus = { path = "../consensus" } execution = { path = "../execution" } config = { path = "../config" } + [dependencies.web-sys] version = "0.3" -features = [ - "console", -] - +features = ["console", "Storage", "Window"] diff --git a/helios-ts/index.html b/helios-ts/index.html index d61fccc6..3b201ca4 100644 --- a/helios-ts/index.html +++ b/helios-ts/index.html @@ -9,7 +9,7 @@