Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(SHIP-2626) added custom error handling for Treasure #13981

Merged
merged 19 commits into from
Aug 17, 2024

Conversation

amaechiokolobi
Copy link
Contributor

Requires Dependencies

Resolves Dependencies

@amaechiokolobi amaechiokolobi requested a review from a team as a code owner July 31, 2024 20:43
@amaechiokolobi amaechiokolobi changed the title added custom error handling for Treasure (SHIP-2626) added custom error handling for Treasure Jul 31, 2024
Copy link
Contributor

github-actions bot commented Aug 7, 2024

I see you added a changeset file but it does not contain a tag. Please edit the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

core/chains/evm/client/errors.go Outdated Show resolved Hide resolved
core/chains/evm/client/errors.go Outdated Show resolved Hide resolved
core/chains/evm/client/errors_test.go Outdated Show resolved Hide resolved
Copy link
Contributor Author

@amaechiokolobi amaechiokolobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -405,6 +405,7 @@ func Test_Eth_Errors_Fatal(t *testing.T) {
{"failed to forward tx to sequencer, please try again. Error message: 'invalid sender'", true, "Mantle"},

{"client error fatal", true, "tomlConfig"},
{"invalid chain id for signer", true, "Treasure"},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like you have four separate error messages categorized for TreasureFatal, maybe add three others here in the test as well ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I just remove those as they were copied from Arbitrum and not relevant actually

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, then you should keep it, as this case is unique for Treasure

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've left the invalid chain id for signer, and removed the others

@prashantkumar1982 prashantkumar1982 added this pull request to the merge queue Aug 16, 2024
@cl-sonarqube-production
Copy link

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 16, 2024
@krehermann krehermann added this pull request to the merge queue Aug 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 16, 2024
@prashantkumar1982 prashantkumar1982 added this pull request to the merge queue Aug 17, 2024
Merged via the queue into develop with commit 6ef1d6e Aug 17, 2024
137 of 139 checks passed
@prashantkumar1982 prashantkumar1982 deleted the ship-2626-treasure-errors branch August 17, 2024 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants