Improve agw-client README examples and paymaster usage#420
Improve agw-client README examples and paymaster usage#4200x4tl4nt wants to merge 1 commit intoAbstract-Foundation:mainfrom
Conversation
Description Updated examples in packages/agw-client/README.md to improve correctness, consistency, and usability. Removed unused and potentially incorrect ChainEIP712 import from viem Aligned type usage with the rest of the package (viem/zksync) Replaced placeholder paymasterInput: '0x' with a working example using getGeneralPaymasterInput Clarified paymaster usage in sendTransaction (fields instead of a single object) Improved example readability and structure (headings, links, formatting) These changes make the examples consistent with the actual implementation and ensure they can be copied and used with minimal adjustments.
PR SummaryLow Risk Overview Written by Cursor Bugbot for commit 11f5bb7. This will update automatically on new commits. Configure here. |
|
Description
Updated examples in
packages/agw-client/README.mdto improve correctness, consistency, and usability.ChainEIP712import fromviem.viem/zksync).paymasterInput: '0x'with a working example usinggetGeneralPaymasterInputpaymasterusage insendTransaction(fields instead of a single object).PR-Codex overview
This PR focuses on updating the
README.mdfor theagw-clientpackage by modifying the waypaymasterInputis handled in the transaction process and clarifying the explanation of Paymaster usage.Detailed summary
ChainEIP712fromviem.getGeneralPaymasterInputfromviem/zksync.paymasterInputto usegetGeneralPaymasterInput({ innerInput: '0x' }).