Closed roninjin10 closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Latest commit: b535896788945ed2abcd164ddd347eb4b8b0686c
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
This stack of pull requests is managed by Graphite. Learn more about stacking.
Join @roninjin10 and the rest of your teammates on Graphite
This pull request introduces modifications to the type declarations of JSON-RPC request types in the AnvilJsonRpcRequest.ts
file, changing mutable arrays to immutable tuples for enhanced type safety. Additionally, the anvilResetJsonRpcProcedure
function in anvilResetProcedure.js
has been restructured to improve its reset process, including parameter renaming and internal logic updates. A new test file, anvilResetProcedure.spec.ts
, has been added to validate the functionality of the reset procedure. A related changeset addresses a bug in parameter handling for JSON-RPC requests.
File Path | Change Summary |
---|---|
packages/actions/src/anvil/AnvilJsonRpcRequest.ts | Updated type declarations for JSON-RPC request types to use readonly tuples for improved type safety. |
packages/actions/src/anvil/AnvilParams.ts | Simplified AnvilResetParams type from a complex structure to an empty type definition. |
packages/actions/src/anvil/anvilResetProcedure.js | Refactored anvilResetJsonRpcProcedure to enhance the reset process and renamed the parameter from client to node . |
packages/actions/src/anvil/anvilResetProcedure.spec.ts | Added unit tests for anvilResetJsonRpcProcedure covering standard and forked blockchain reset scenarios. |
.changeset/nice-actors-sort.md | Fixed a bug related to input parameters of JSON-RPC requests, ensuring they are treated as readonly. |
eth_sendRawTransaction
function, which may relate to the JSON-RPC request types updated in the main PR, particularly since both involve handling JSON-RPC procedures and their parameters.In the code where rabbits play,
Types are safe, come what may.
With a reset, clear and bright,
We hop along, coding light!
Immutable tuples, oh what a sight! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
Concise description of proposed changes
Testing
Explain the quality checks that have been done on the code changes
Additional Information
Your ENS/address:
Summary by CodeRabbit
New Features
Bug Fixes
Tests