Skip to content

Commit

Permalink
fixed: storage --hideValues option
Browse files Browse the repository at this point in the history
  • Loading branch information
naddison36 committed Sep 7, 2023
1 parent 6f4fc75 commit 95ee67a
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Options:
-bn, --block <number> Block number to get the contract storage values from. (default: "latest")
-a, --array <number> Number of slots to display at the start and end of arrays. (default: "2")
-hx, --hideExpand <variables> Comma-separated list of storage variables to not expand. That's arrays, structs, strings or bytes.
-hv, --hideValue Hide storage slot value column. (default: false)
-hv, --hideValues Hide storage slot value column. (default: false)
-h, --help display help for command
```

Expand Down
30 changes: 15 additions & 15 deletions examples/storage/UniswapV3PoolData.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/sol2uml.js

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

4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sol2uml",
"version": "2.5.13",
"version": "2.5.14",
"description": "Solidity contract visualisation tool.",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/ts/sol2uml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ WARNING: sol2uml does not use the Solidity compiler so may differ with solc. A k
"Comma-separated list of storage variables to not expand. That's arrays, structs, strings or bytes.",
validateVariables,
)
.option('-hv, --hideValue', 'Hide storage slot value column.', false)
.option('-hv, --hideValues', 'Hide storage slot value column.', false)
.action(async (fileFolderAddress, options, command) => {
try {
const combinedOptions = {
Expand Down
3 changes: 3 additions & 0 deletions tests/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ sol2uml storage . -c VaultCore -hx ______gap -o VaultCoreNew.svg
sol2uml storage 0x1ef0553feb80e6f133cae3092e38f0b23da6452b -hx ______gap -o VaultAdminOld.svg
sol2uml storage . -c VaultAdmin -hx ______gap -o VaultAdminNew.svg

## Origin OETH Vault Proxy
sol2uml storage 0x39254033945AA2E4809Cc2977E7087BEE48bd7Ab

## Origin OETH VaultCore
sol2uml storage 0xEA24e9Bac006DE9635Ac7fA4D767fFb64FB5645c
sol2uml storage 0xEA24e9Bac006DE9635Ac7fA4D767fFb64FB5645c -hx ______gap,_deprecated_swapTokens
Expand Down

0 comments on commit 95ee67a

Please sign in to comment.