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

Fix node funding by reading proper primary ETH key based on chain ID #1487

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

b-gopalswami
Copy link
Contributor

@b-gopalswami b-gopalswami commented Dec 16, 2024


Below is a summarization created by an LLM (gpt-4-0125-preview). Be mindful of hallucinations and verify accuracy.

Why

The changes enhance error handling across blockchain-related operations by utilizing the github.com/pkg/errors package for better error wrapping. Additionally, the update allows for the retrieval of a primary ETH key based on a specific chain ID, improving multi-chain support.

What

  • framework/clclient/client.go
    • Modified ReadPrimaryETHKey function to accept chainId as an argument, enabling fetching of the primary ETH key specific to a given chain ID.
    • Added logic to iterate over ETH keys and return the one matching the provided chain ID, improving support for multi-chain environments.
  • framework/components/simple_node_set/fund.go
    • Imported github.com/pkg/errors package for enhanced error wrapping.
    • Updated error handling in SendETH function to use errors.Wrap for more descriptive errors.
    • Modified FundNodes to fetch and pass chain ID to ReadPrimaryETHKey, aligning with changes in client.go and supporting multi-chain configurations.

@b-gopalswami b-gopalswami requested review from sebawo and a team as code owners December 16, 2024 17:09
@cl-sonarqube-production
Copy link

@skudasov skudasov merged commit d9c773e into main Dec 16, 2024
48 of 49 checks passed
@skudasov skudasov deleted the fix-node-funding branch December 16, 2024 17:15
davidcauchi added a commit that referenced this pull request Dec 18, 2024
* sentinel init

* Added sentinel

* Fixes

* Fix up

* Fixup

* Cleanup

* Fixup

* Add block numbers to poll logs

* Update version

* Remove unneeded functions that were enabling testing

* Remove duplication

* Hide implementation details

* Use CTF logging lib

* Update docs

* update modgraph

* tiny adjustments to Seth docs (#1482)

* Keep test outputs for Flakeguard in separate fields (#1485)

* Read primary ETH key based on chain id (#1487)

* Container polling speedup, move Promtail to CLI, Delve debugger entrypoint (#1484)

move promtail, speedup, delve

* dlv from flag, fix promtail logs (#1488)

* change go doc generation OpenAI api key secret name (#1483)

* Enable k8s tests (#1498)

---------

Co-authored-by: skudasov <[email protected]>
Co-authored-by: Bartek Tofel <[email protected]>
Co-authored-by: Lukasz <[email protected]>
Co-authored-by: Balamurali Gopalswami <[email protected]>
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.

2 participants