fix(mcms): improve error handling in confirmTransaction#594
Conversation
🦋 Changeset detectedLatest commit: 5b55c7c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
725a971 to
a01ba76
Compare
There was a problem hiding this comment.
Pull request overview
This PR improves error handling in the confirmTransaction function by adding better logging and more informative error messages when transaction confirmation fails.
Key changes:
- Adds error logging before attempting to fetch transaction receipt
- Enhances error messages to include receipt details for better debugging
- Refactors receipt status check to handle successful transactions more explicitly
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| engine/cld/legacy/cli/mcmsv2/mcms_v2.go | Enhanced error handling with additional logging and improved error messages in the transaction confirmation flow |
| .changeset/true-mammals-lie.md | Added changeset documenting the error handling improvements |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
a01ba76 to
31228ac
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| } | ||
|
|
||
| return err | ||
| return fmt.Errorf("transaction %s failed (block number %v): %w", tx.Hash, rcpt.BlockNumber, err) |
There was a problem hiding this comment.
The error message says 'transaction %s failed' but this return statement is reached both when the receipt status indicates failure (status != 1) and when revert decoding is unavailable. Consider making the message more specific, such as 'transaction %s reverted in block %v' to clarify this is a revert scenario, not a general failure.
| return fmt.Errorf("transaction %s failed (block number %v): %w", tx.Hash, rcpt.BlockNumber, err) | |
| return fmt.Errorf("transaction %s reverted in block %v (revert decoding unavailable): %w", tx.Hash, rcpt.BlockNumber, err) |
|
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## chainlink-deployments-framework@0.68.2 ### Patch Changes - [#588](#588) [`d1febae`](d1febae) Thanks [@gustavogama-cll](https://github.com/gustavogama-cll)! - fix(mcms): make proposalContextProvider a required param of BuildMCMSv2Cmd - [#595](#595) [`95f96d9`](95f96d9) Thanks [@finleydecker](https://github.com/finleydecker)! - Added -eth flag to the evm nodes fund command. Example: users can now use "-eth 10" to fund nodes up to 10 eth. Also added a new line separator to the current balance log to improve readability. - [#594](#594) [`5936b3b`](5936b3b) Thanks [@gustavogama-cll](https://github.com/gustavogama-cll)! - fix(mcms): improve error handling in confirmTransaction --------- Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com>





No description provided.