Skip to content

feat: Add support for ERC-8132: Gas Limit Override Capability#238

Draft
ajhodges wants to merge 3 commits intobase:masterfrom
ajhodges:erc-8132
Draft

feat: Add support for ERC-8132: Gas Limit Override Capability#238
ajhodges wants to merge 3 commits intobase:masterfrom
ajhodges:erc-8132

Conversation

@ajhodges
Copy link
Collaborator

Summary

Implements ERC-8132 Gas Limit Override Capability, allowing apps to specify per-call gas limits in wallet_sendCalls requests.

Changes:

  • Add gasLimitOverride capability to wallet_getCapabilities response under 0x0 (all chains)
  • Add TypeScript types for call-level and wallet-level capabilities
  • Add validation for gas limit values (non-zero, within block gas limit)
  • Pass through per-call capabilities to wallet_prepareCalls

Note: ERC-8132 is currently in draft status. Consider releasing via canary only until the ERC is finalized.

How did you test your changes?

  • Added 4 unit tests for wallet_getCapabilities returning gasLimitOverride under 0x0
  • Added 5 unit tests for gas limit validation (zero values, exceeds max, batch validation)

@cb-heimdall
Copy link
Collaborator

cb-heimdall commented Jan 26, 2026

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

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