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

3rd party ethereum node integration adjustments #3153

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

kziemianek
Copy link
Member

Some adjustments needed to make ethereum work with 3rd party node - infura for example.

  • install required ca-certificates in docker image
  • set tx gas price
  • get nonce instead of account

@kziemianek kziemianek requested a review from a team October 30, 2024 13:51
let account =
provider.get_account(provider.signer_addresses().next().unwrap()).await.unwrap();
let nonce = provider
.get_transaction_count(provider.signer_addresses().next().unwrap())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Dumb question: what's the diff?

Copy link
Member Author

Choose a reason for hiding this comment

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

eth_getAccount is not listend in ethereum api documentation https://ethereum.github.io/execution-apis/api-documentation/ , it worked for locally run anvil node but failed while I was testing the integration with infura's api.

@kziemianek kziemianek merged commit 77180bb into dev Oct 31, 2024
21 checks passed
@kziemianek kziemianek deleted the omni-executor-ethereum-integration branch October 31, 2024 13:49
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