Closed aarmoa closed 3 weeks ago
The pull request introduces modifications to the error handling logic in the SyncBroadcastSignedTx
and broadcastTx
methods of the chainClient
struct in client/chain/chain.go
. The updates ensure that both methods check for unsuccessful transaction responses by verifying if res.TxResponse.Code
is not equal to 0, in addition to checking for errors. This enhancement aims to improve the reliability and robustness of transaction processing by better managing error detection.
File Path | Change Summary |
---|---|
client/chain/chain.go | Updated error handling in SyncBroadcastSignedTx and broadcastTx methods to include checks for res.TxResponse.Code not being 0, along with existing error checks. Method signatures for both methods have also been updated. |
🐇 In the realm of code where transactions flow,
A tweak here and there makes the errors glow.
With checks in place, our broadcasts now sing,
Robust and reliable, oh what joy they bring!
So hop along, dear friends, let’s celebrate this feat,
For every line of code, makes our journey sweet! ✨
Fixes CHAIN-209
Summary by CodeRabbit
Bug Fixes
New Features