Skip to content

Commit abf21fe

Browse files
committed
fix clippy
1 parent 9cf3cc4 commit abf21fe

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

helios-ts/src/ethereum.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ impl EthereumClient {
158158
}
159159

160160
#[wasm_bindgen]
161-
pub async fn wait_synced(&self) {
162-
self.inner.wait_synced().await;
161+
pub async fn wait_synced(&self) -> Result<(), JsError> {
162+
map_err(self.inner.wait_synced().await)
163163
}
164164

165165
#[wasm_bindgen]

helios-ts/src/linea.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ impl LineaClient {
8989
}
9090

9191
#[wasm_bindgen]
92-
pub async fn wait_synced(&self) {
93-
self.inner.wait_synced().await;
92+
pub async fn wait_synced(&self) -> Result<(), JsError> {
93+
map_err(self.inner.wait_synced().await)
9494
}
9595

9696
#[wasm_bindgen]

helios-ts/src/opstack.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ impl OpStackClient {
106106
}
107107

108108
#[wasm_bindgen]
109-
pub async fn wait_synced(&self) {
110-
self.inner.wait_synced().await;
109+
pub async fn wait_synced(&self) -> Result<(), JsError> {
110+
map_err(self.inner.wait_synced().await)
111111
}
112112

113113
#[wasm_bindgen]

0 commit comments

Comments
 (0)