Skip to content

Commit

Permalink
✅ Test: state unit tests (#1327)
Browse files Browse the repository at this point in the history
## Description

_Concise description of proposed changes_

## Testing

Explain the quality checks that have been done on the code changes

## Additional Information

- [ ] I read the [contributing docs](../docs/contributing.md) (if this
is your first contribution)

Your ENS/address:



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced multiple new test cases to verify various functionalities
like state dumping, account retrieval, contract code fetching, and error
handling.

- **Bug Fixes**
- Enhanced error handling in the `dumpCanonicalGenesis` function to
provide more informative error messages when an account is not found.
- Improved the `getAccount` function to return `undefined` when an
account does not exist.

- **Improvements**
- Updated `dumpStorageRange` to handle cache storage and provide
detailed storage data.
- Enhanced `getAccountFromProvider` to handle specific address types for
better consistency.
- Made the `deleteAccount` function asynchronous for more reliable
account deletion processes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: William Cory <[email protected]>
  • Loading branch information
roninjin10 and William Cory authored Aug 1, 2024
1 parent 38ba69d commit 528204b
Show file tree
Hide file tree
Showing 23 changed files with 17,134 additions and 17 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`dumpStorageRange > should dump storage from a range 1`] = `
{
"nextKey": null,
"storage": {
"0000000000000000000000000000000000000000000000000000000000000000": {
"key": "0000000000000000000000000000000000000000000000000000000000000000",
"value": "0x01a4",
},
},
}
`;
Loading

0 comments on commit 528204b

Please sign in to comment.