-
Notifications
You must be signed in to change notification settings - Fork 538
[SDK] Fix: allow 0 values for gasPrice #5841
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5841 +/- ##
==========================================
- Coverage 54.53% 54.52% -0.01%
==========================================
Files 1105 1105
Lines 59332 59332
Branches 4924 4921 -3
==========================================
- Hits 32354 32349 -5
- Misses 26258 26263 +5
Partials 720 720
*This pull request uses carry forward flags. Click here to find out more.
|
Merge activity
|
## Problem solved Allow `0` value for gasPrice, important for gasless chains Fixes TOOL-2865 <!-- start pr-codex --> --- ## PR-Codex overview This PR modifies the conditional check for `gasPrice` in the `fee-data.ts` file to ensure it specifically checks if `gasPrice` is of type `bigint` instead of just checking its truthiness. ### Detailed summary - Changed the condition from `if (gasPrice)` to `if (typeof gasPrice === "bigint")` in the `fee-data.ts` file. - This ensures that only values of type `bigint` are considered valid for `gasPrice`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
8730dfb
to
71eaf8f
Compare
Problem solved
Allow
0
value for gasPrice, important for gasless chainsFixes TOOL-2865
PR-Codex overview
This PR updates the conditional check for
gasPrice
in thefee-data.ts
file to ensure it specifically checks ifgasPrice
is of typebigint
, enhancing type safety.Detailed summary
if (gasPrice)
toif (typeof gasPrice === "bigint")
in thefee-data.ts
file.gasPrice
is abigint
.