You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cast storage): respect --json for layout (foundry-rs#9332)
* feat(cast storage): allow ugly printing of layout
Prior to this change, `cast storage $ADDRESS --rpc-url $RPC_URL
--etherscan-api-key $ETHERSCAN_API_KEY` always provided a prettified
output.
This change adds a `--pretty` flag to `cast storage` which defaults to
`true` thus retaining backwards compatibility. Passing `--pretty=false`
to `cast storage` results in the json output of the storage layout being
produced instead.
* fix: remove default value from help text
The default value is accessible via `cast storage --help`
* fix(cast storage): provide output json path
* test(cast): add storage_layout_simple_json test
* fix(cast storage): use `--json` flag to ugly print
* fix(cast storage): include values in json mode
* fix(cast-storage): quiet compilation in all cases
* chore: cargo clippy
* use fixtures, assert JSON
* only quiet if JSON mode, avoid unnecessary warning (if you pass an API key you already expect to fetch remote, very likely default)
---------
Co-authored-by: zerosnacks <[email protected]>
Co-authored-by: zerosnacks <[email protected]>
0 commit comments