fix lint warnings

pull/1385/head
bohendo 2 years ago
parent b5e6ebbc36
commit 2b9f192b39
  1. 9
      slither/tools/read_storage/__main__.py
  2. 1
      tests/test_read_storage.py

@ -128,11 +128,10 @@ def main() -> None:
srs = SlitherReadStorage(contracts, args.max_depth)
if args.block:
try:
srs.block = int(args.block)
except ValueError:
srs.block = str(args.block)
try:
srs.block = int(args.block)
except ValueError:
srs.block = str(args.block or "latest")
if args.rpc_url:
# Remove target prefix e.g. rinkeby:0x0 -> 0x0.

@ -112,7 +112,6 @@ def test_read_storage(web3, ganache) -> None:
srs = SlitherReadStorage(contracts, 100)
srs.rpc = ganache.provider
srs.block = "latest"
srs.storage_address = address
srs.get_all_storage_variables()
srs.get_storage_layout()

Loading…
Cancel
Save