contracts: add inspect hh task (#3301)
This hardhat task mirrors functionality of `forge inspect`
where you can pass a contract name and a compiler output field
and it will print that field for you. This will be useful for
building sets of `storageLayout`s and `methodIdentifiers` to
compare against the bedrock contracts.
Example usage:
```
$ npx hardhat inspect AddressDictator storageLayout
```
Where `AddressDictator` can be any contract in the package
and `storageLayout` can be one of the following:
- abi
- bytecode
- deployedBytecode
- storageLayout
- methodIdentifiers
This is one of the more useful features of foundry so porting it
to hardhat will make storageLayout inspections much easier.
Co-authored-by:
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Showing
Please register or sign in to comment