https://github.com/ericglau/hardhat-storage-layout
https://github.com/ericglau/hardhat-storage-layout
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ericglau/hardhat-storage-layout
- Owner: ericglau
- Created: 2023-07-25T16:01:50.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-25T17:51:36.000Z (almost 3 years ago)
- Last Synced: 2025-04-03T12:52:54.554Z (over 1 year ago)
- Language: TypeScript
- Size: 161 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample Hardhat Project
This project provides a basic example of how to perform storage layout checks between two versions of an upgradeable smart contract.
## Installing dependencies
```
npm install
```
## Copying the contracts
Copy the old and new versions of your contract into V1.sol and V2.sol, respectively. This can be flattened verified source code from Etherscan.
## Testing the contract
Adjust the contract names in `test/test.ts`. Then run:
```
npm test
```