File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff 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]
Original file line number Diff line number Diff 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]
Original file line number Diff line number Diff 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]
You can’t perform that action at this time.
0 commit comments