Skip to content

fix: prevent gasLimit=0 for EOA wallets during isEOA loading#861

Merged
kasparkallas merged 2 commits intomasterfrom
fix/intrinsic-gas-too-low
Mar 31, 2026
Merged

fix: prevent gasLimit=0 for EOA wallets during isEOA loading#861
kasparkallas merged 2 commits intomasterfrom
fix/intrinsic-gas-too-low

Conversation

@kasparkallas
Copy link
Copy Markdown
Collaborator

Summary

  • isEOA is boolean | null — it's null while the getCode() query is loading or on error
  • !null === true, so EOA wallets were getting gasLimit = 0 before the query resolved
  • SDK-core converts 0 to BigNumber(0) which is truthy, skipping gas estimation entirely
  • Transactions sent with gasLimit = 0 → "Intrinsic gas too low" on Polygon and Base
  • Fix: isEOA === false ensures gasLimit=0 only for confirmed smart contract wallets

Test plan

  • Connect EOA wallet on Polygon, send a stream/wrap transaction — no "Intrinsic gas too low"
  • Connect EOA wallet on Base, send a transaction — no "Intrinsic gas too low"
  • Connect Gnosis Safe — transactions still work as before

🤖 Generated with Claude Code

The `!isEOA` check treated `null` (loading/error) the same as `false`,
causing EOA wallets to get gasLimit=0 before the isEOA query resolved.
SDK-core's Operation class converts 0 to BigNumber(0) which is truthy,
skipping gas estimation and sending transactions with zero gas.

Using `isEOA === false` ensures gasLimit=0 is only set for confirmed
smart contract wallets.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
superfluid-dashboard Ready Ready Preview Mar 31, 2026 9:46am

Request Review

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kasparkallas kasparkallas merged commit 5127ddd into master Mar 31, 2026
1 check was pending
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.

1 participant