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(CA): fixing the nonce calculation, decreasing gas estimate, transactions chain ID fix #829

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

geekbrother
Copy link
Contributor

Description

This PR fixes the following issues:

  • Proper chain ID passing when calculating the nonce to fix the nonce is too high error,
  • Decreasing the default gas estimate from x4 to x2,
  • Fixing chain ID passing to the transactions list.

How Has This Been Tested?

  • Updated integration test

Due Diligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

@geekbrother geekbrother self-assigned this Nov 5, 2024
@geekbrother geekbrother marked this pull request as ready for review November 5, 2024 13:59
@@ -19,8 +19,8 @@ describe('Chain abstraction orchestrator', () => {
const amount_multiplier = 5; // +5% topup
// How much needs to be topped up
const amount_to_topup = (amount_to_send - usdc_funds_on_optimism) * (100 + amount_multiplier) / 100;
// Default gas esimation is default with 4x increase
const gas_estimate = "0xa69ac";
// Default gas esimation is default with 2x increase
Copy link
Member

Choose a reason for hiding this comment

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

Why are we hardcoding this 2x thing? Don't we know the actual amount with eth_estimateGas?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's because we hardcoded the x2 here, will do this followup now, but we need to ship this asap.

@geekbrother geekbrother merged commit dbf3982 into master Nov 5, 2024
15 checks passed
@geekbrother geekbrother deleted the fix/gas_and_nonce_fixes branch November 5, 2024 14:16
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