Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yaziciahmet committed Aug 12, 2024
1 parent 16156a0 commit 68a2346
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions crates/sovereign-sdk/full-node/sov-ledger-rpc/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,14 @@ where
.map_err(|e| to_jsonrpsee_error_object(LEDGER_RPC_ERROR, e))
})?;

rpc.register_async_method("ledger_getHeadSoftConfirmation", |_, ledger, _| async move {
ledger
.get_head_soft_confirmation()
.map_err(|e: anyhow::Error| to_jsonrpsee_error_object(LEDGER_RPC_ERROR, e))
})?;
rpc.register_async_method(
"ledger_getHeadSoftConfirmation",
|_, ledger, _| async move {
ledger
.get_head_soft_confirmation()
.map_err(|e: anyhow::Error| to_jsonrpsee_error_object(LEDGER_RPC_ERROR, e))
},
)?;

rpc.register_async_method(
"ledger_getHeadSoftConfirmationHeight",
Expand Down

0 comments on commit 68a2346

Please sign in to comment.