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: estimateGas infinite loop for linea #2915

Merged
merged 2 commits into from
Oct 23, 2024
Merged

fix: estimateGas infinite loop for linea #2915

merged 2 commits into from
Oct 23, 2024

Conversation

iltumio
Copy link
Contributor

@iltumio iltumio commented Oct 23, 2024

Fixes #2849

When the account.type is local, the custom estimateGas function for Linea calls the prepareTransactionResult that internally calls back the estimateGas causing an infinite loop. Removing that logic fixed the issue


PR-Codex overview

This PR focuses on fixing an infinite loop issue in the estimateGas function and updating the viem package version.

Detailed summary

  • Fixed infinite loop in the estimateGas function located in src/linea/actions/estimateGas.ts.
  • Updated viem package version from 2.21.32 to 2.21.33 in pnpm-lock.yaml.
  • Adjusted peer dependency for typescript to be optional in pnpm-lock.yaml.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

changeset-bot bot commented Oct 23, 2024

🦋 Changeset detected

Latest commit: 594e2a7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Patch

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

Copy link

vercel bot commented Oct 23, 2024

@iltumio is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

@jxom jxom merged commit 8032ffa into wevm:main Oct 23, 2024
12 of 25 checks passed
@github-actions github-actions bot mentioned this pull request Oct 23, 2024
nikola-bozin-txfusion pushed a commit to kiriyaga-txfusion/viem that referenced this pull request Oct 30, 2024
* fix: estimateGas infinite loop for linea

* Create plenty-pets-kneel.md

---------

Co-authored-by: jxom <j@wevm.dev>
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.

Infinite loop while calling estimateContractGas on linea
2 participants