-
Notifications
You must be signed in to change notification settings - Fork 359
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
[SDK] get ERC20Value for claimToBatch #5157
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
overrides: { | ||
erc20Value: () => getERC20Value(options), | ||
...options.content, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There appears to be a bug where options.content
is being spread into the overrides object. This is incorrect as content
contains claim parameters, not transaction overrides. The spread should be ...options.overrides
instead to properly pass through any transaction override parameters.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Holy cow good bot!!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good bot
1c3e58b
to
550be2c
Compare
550be2c
to
e849966
Compare
6090c75
to
bc3f390
Compare
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5157 +/- ##
==========================================
+ Coverage 45.42% 45.43% +0.01%
==========================================
Files 1065 1065
Lines 55145 55181 +36
Branches 3970 3977 +7
==========================================
+ Hits 25049 25072 +23
- Misses 29404 29417 +13
Partials 692 692
*This pull request uses carry forward flags. Click here to find out more.
|
bc3f390
to
7e93768
Compare
amountWei: bigint; | ||
tokenAddress: Address; | ||
} | ||
| Promise< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sure we're handling this being a promise where its used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so far I believe only getApprovalForTransaction is using it (which is the reason why you added erc20Value in the first place?) - I'll double check anyway
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on enhancing the
erc20Value
type inprepare-transaction.ts
and adding a newgetERC20Value
function inclaimToBatch.ts
to handle promise resolutions for ERC20 values in batch claims.Detailed summary
erc20Value
type to allow a promise or undefined inprepare-transaction.ts
.claimToBatch
function to includeerc20Value
in the overrides.getERC20Value
function to resolve and aggregate ERC20 values from claims.getERC20Value
.