-
Notifications
You must be signed in to change notification settings - Fork 34
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
✨ Add hex number string support to wei converters and estimateGas
#127
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
estimateGas
Codecov Report
@@ Coverage Diff @@
## master #127 +/- ##
==========================================
+ Coverage 85.65% 85.80% +0.15%
==========================================
Files 37 37
Lines 892 902 +10
Branches 258 259 +1
==========================================
+ Hits 764 774 +10
Misses 113 113
Partials 15 15
Continue to review full report at Codecov.
|
src/providers/JsonRpcProvider.ts
Outdated
@@ -20,6 +23,12 @@ export class JsonRpcProvider extends BaseProvider { | |||
constructor(rpcUrl = 'https://free-eth-node.com/api/eth') { | |||
super([rpcUrl]); | |||
} | |||
|
|||
async estimateGas(transaction: Record<string, unknown>): Promise<TinyBig> { |
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.
This should go in base provider instead so that both JsonRpcProvider
and FallthroughProvider
get it via inheritance
I'll do the rest @icepy 🙏 |
#120 and #97 @dawsbot pls code review ~