Skip to content

Commit 85ae7e5

Browse files
committed
chore: check sync error in examples
1 parent 11bc2dc commit 85ae7e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async fn main() -> Result<()> {
4242
Network::Mainnet
4343
);
4444

45-
client.wait_synced().await;
45+
client.wait_synced().await?;
4646

4747
let client_version = client.get_client_version().await;
4848
let head_block_num = client.get_block_number().await?;

examples/call.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async fn main() -> eyre::Result<()> {
4848
);
4949

5050
// Wait for Helios to sync
51-
client.wait_synced().await;
51+
client.wait_synced().await?;
5252

5353
// Call on helios client
5454
let tx = TransactionRequest {

0 commit comments

Comments
 (0)