Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
markopoloparadox committed Feb 12, 2025
1 parent 7ddd676 commit 6774b86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpc/system-rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ impl TransactionStateServer for System {
async fn transaction_state(
&self,
txhash: H256,
is_finalized: Option<bool>,
finalized: Option<bool>,
) -> RpcResult<Vec<TransactionState>> {
let (response_tx, response_rx) = oneshot::channel();

let is_finalized = is_finalized.unwrap_or(false);
let res = self.sender.send((txhash, is_finalized, response_tx)).await;
let finalized = finalized.unwrap_or(false);
let res = self.sender.send((txhash, finalized, response_tx)).await;
if let Err(e) = res {
return Err(internal_error(e.to_string()));
}
Expand Down

0 comments on commit 6774b86

Please sign in to comment.