Skip to content

Commit

Permalink
fix the return value of txn stat api (#3943)
Browse files Browse the repository at this point in the history
  • Loading branch information
dailinsubjam authored Dec 6, 2024
1 parent ecfd22a commit 9b0706e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/builder-api/src/v0_1/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,7 @@ where
.body_auto::<<Types as NodeType>::Transaction, Ver>(Ver::instance())
.map_err(Error::TxnUnpack)?;
let hash = tx.commit();
state.txn_status(hash).await.map_err(Error::TxnStat)?;
Ok(hash)
state.txn_status(hash).await.map_err(Error::TxnStat)
}
.boxed()
})?;
Expand Down

0 comments on commit 9b0706e

Please sign in to comment.