Skip to content

Commit 4e571dd

Browse files
committed
run black formatter
Signed-off-by: Anthony Cabrera <[email protected]>
1 parent fafa0f6 commit 4e571dd

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

slither/tools/read_storage/read_storage.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313
from web3.middleware import ExtraDataToPOAMiddleware
1414

1515
from slither.core.declarations import Contract, Structure
16-
from slither.core.solidity_types import ArrayType, ElementaryType, MappingType, UserDefinedType, TypeAliasTopLevel
16+
from slither.core.solidity_types import (
17+
ArrayType,
18+
ElementaryType,
19+
MappingType,
20+
UserDefinedType,
21+
TypeAliasTopLevel,
22+
)
1723
from slither.core.solidity_types.type import Type
1824
from slither.core.cfg.node import NodeType
1925
from slither.core.variables.state_variable import StateVariable

tests/tools/read-storage/test_read_storage.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ def deploy_contract(w3, ganache, contract_bin, contract_abi) -> Contract:
4242
# pylint: disable=too-many-locals
4343
@pytest.mark.parametrize(
4444
"test_contract, storage_file",
45-
[("StorageLayout", "storage_layout"), ("UnstructuredStorageLayout", "unstructured_storage")],
45+
[
46+
("StorageLayout", "storage_layout"),
47+
("UnstructuredStorageLayout", "unstructured_storage"),
48+
],
4649
)
4750
@pytest.mark.usefixtures("web3", "ganache")
4851
def test_read_storage(test_contract, storage_file, web3, ganache, solc_binary_path) -> None:
@@ -91,9 +94,9 @@ def test_read_storage(test_contract, storage_file, web3, ganache, solc_binary_pa
9194

9295
assert not diff
9396

97+
9498
def test_type_alias() -> None:
95-
"""verify support for TypeAliasTop
96-
"""
99+
"""verify support for TypeAliasTop"""
97100
slither = Slither(Path(TEST_DATA_DIR, "typealiastest.sol").as_posix())
98101
c = slither.get_contract_from_name("C")
99102
srs = SlitherReadStorage(c, 20)

0 commit comments

Comments
 (0)