Skip to content

Commit 56fd5f5

Browse files
committed
Minor
1 parent bebe2e9 commit 56fd5f5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/pytest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
run: |
3333
python setup.py install
3434
pip install pytest
35+
pip install solc-select
3536
- name: Run Tests
3637
run: |
3738
pytest tests/test_metadata.py

crytic_compile/source_unit.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,12 +549,15 @@ def _compute_topics_events(self, name: str) -> None:
549549

550550
def metadata_of(self, name: str) -> Dict[str, Union[str, bool]]:
551551
"""Return the parsed metadata of a contract by name
552+
552553
Args:
553554
name (str): contract name
555+
554556
Raises:
555557
ValueError: If no contract/library with that name exists
558+
556559
Returns:
557-
Dict[str, Union[str, bool]]: fieldname => value
560+
Dict[str, Union[str, bool]]: fielname => value
558561
"""
559562
# the metadata is at the end of the runtime(!) bytecode
560563
try:

0 commit comments

Comments
 (0)