feat: add ERC-4337 gas-override & sign-transaction examples, fix typecheck against latest SDK - #13
Open
claudiovb wants to merge 3 commits into
Open
feat: add ERC-4337 gas-override & sign-transaction examples, fix typecheck against latest SDK#13claudiovb wants to merge 3 commits into
claudiovb wants to merge 3 commits into
Conversation
ihsraham
approved these changes
Jun 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds two new ERC-4337 wallet examples and brings the
wallet-evm-erc-4337examples back in line with the latest@tetherto/wdk-wallet-evm-erc-4337:send-transaction-gas-override.ts- reads the SDK's own gas estimate (viasignTransaction), bumps every field by a configurableBUMP_PERCENT, and submits the bumped values as explicit overrides on the newEvmErc4337Transactionshape (callGasLimit,verificationGasLimit,preVerificationGas,maxFeePerGas,maxPriorityFeePerGas). After sending it prints the tx hash, an explorer link, and polls the on-chain UserOp receipt so the bump can be verified.sign-transaction.ts- builds and signs aUserOperationV7locally without broadcasting.entryPointAddressconfig field (dropped upstream; entrypoint is now derived fromsafeModulesVersion) from allwallet-evm-erc-4337examples andshared/config.tsandnpm run typecheckis green again.ethereum-sepolia-rpc.publicnode.com(the previousdrpc.orgfree tier rejects batched RPC calls, breaking fee estimation) in.env.example.package.json(example:*scripts +validate:wallet-evm-erc-4337) and the module README table.Note: the root cause of the typecheck breakage is a breaking change upstream (the SDK dropping
entryPointAddress), but the fix in this repo is non-breaking, the examples simply stop passing a field that's now ignored. Verified end-to-end on Sepolia against a live Pimlico bundler (gas overrides confirmed reflected on-chain via the bundler's stored UserOp). And also package.json points to git#main for the erc-4337 package because it was not published on npm yet, once its published we should update thisMotivation and Context
A recent
wdk-wallet-evm-erc-4337update lets consumers override UserOperation gas, replacingEvmTransactionwith the newEvmErc4337Transactiontype, and droppedentryPointAddressfrom config.Type of change