-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: port the node task to hardhat v3 #6025
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
8251902
to
7b82df3
Compare
hardhatTotal size of the bundle: List of dependencies (sorted by size)
|
7b82df3
to
b93cf5e
Compare
b93cf5e
to
2235e4f
Compare
2235e4f
to
1bf954a
Compare
1bf954a
to
94da3a2
Compare
94da3a2
to
a34b576
Compare
a34b576
to
716ec33
Compare
716ec33
to
90e3a4d
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.
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.
90e3a4d
to
7f9a2c4
Compare
@schaable Tagging you for a review, too, as per our initiative to spread the process. https://www.notion.so/nomicfoundation/Node-Task-154578cdeaf5802c870ee4c7ea7a05ba should be helpful for a little more context. |
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.
Hey Piotr! Overall, this looks good, but I’ve left a couple of comments. Feel free to make a decision on the ones marked as minor and consider them resolved.
v-next/hardhat/src/internal/builtin-plugins/network-manager/json-rpc.ts
Outdated
Show resolved
Hide resolved
v-next/hardhat/src/internal/builtin-plugins/node/json-rpc/handler.ts
Outdated
Show resolved
Hide resolved
v-next/hardhat/src/internal/builtin-plugins/node/json-rpc/server.ts
Outdated
Show resolved
Hide resolved
v-next/hardhat/src/internal/builtin-plugins/node/json-rpc/handler.ts
Outdated
Show resolved
Hide resolved
v-next/hardhat/src/internal/builtin-plugins/node/json-rpc/handler.ts
Outdated
Show resolved
Hide resolved
v-next/hardhat/src/internal/builtin-plugins/node/json-rpc/handler.ts
Outdated
Show resolved
Hide resolved
return; | ||
} | ||
|
||
if (Array.isArray(jsonHttpRequest)) { |
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 think we deprecated the sendBatch
method in EthereumProvider
, so handling multiple requests at once could be unnecessary.
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 will add a note about that next to the block for now and try to find out if we plan to add support for batch requests in the future.
Thanks @schaable - that was really helpful 🙇 I've tried to address all the comments in |
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!
In this PR, I port the node task from v2 to v3. I describe my design choices in https://www.notion.so/nomicfoundation/Node-Task-154578cdeaf5802c870ee4c7ea7a05ba (this doc should be helpful in guiding the review)
Follow-ups
Testing
hardhat3 node
and deployed a contract from the v2 sample project to it using ignition.eth_chainId
request. The test suite could definitely be expanded.