-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
hardhat-utils return type improvements #5812
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
v-next/hardhat-utils/src/eth.ts
Outdated
@@ -1,19 +1,61 @@ | |||
import type { PrefixedHexString } from "./hex.js"; |
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 module is starting to have many unrelated things. Maybe we should split it into multiple ones.
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.
I've removed the library linking logic from this PR and will submit it in a follow-up PR.
b4a965e
to
697e116
Compare
697e116
to
9a11fe8
Compare
2d9551c
to
1a8ca51
Compare
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.
LGTM
This PR improves the return types of the
eth
,hex
andnumber
modules. It also renames theisHexStringPrefixed
function toisPrefixedHexString
for consistency and to follow adjective-noun order.EDIT: Also removed
async
fromtoBigInt
function.