Skip to content

Commit 6a85506

Browse files
committed
merge dev
2 parents 4d6a5c0 + a2c7147 commit 6a85506

File tree

12 files changed

+27
-19
lines changed

12 files changed

+27
-19
lines changed

.github/workflows/black.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
- name: Checkout Code
2020
uses: actions/checkout@v2
2121

22-
- name: Set up Python 3.6
22+
- name: Set up Python 3.8
2323
uses: actions/setup-python@v2
2424
with:
25-
python-version: 3.6
25+
python-version: 3.8
2626

2727
- name: Install dependencies
2828
run: |

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ jobs:
4848
uses: actions/setup-node@v2
4949
with:
5050
node-version: ${{ steps.node.outputs.version }}
51-
- name: Set up Python 3.6
51+
- name: Set up Python 3.8
5252
uses: actions/setup-python@v3
5353
with:
54-
python-version: 3.6
54+
python-version: 3.8
5555
- name: Install dependencies
5656
run: |
5757
pip install "solc-select>=v1.0.0b1"

.github/workflows/darglint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v1
17-
- name: Set up Python 3.6
17+
- name: Set up Python 3.8
1818
uses: actions/setup-python@v1
1919
with:
20-
python-version: 3.6
20+
python-version: 3.8
2121
- name: Run Tests
2222
run: |
2323
bash scripts/ci_darglint.sh

.github/workflows/etherscan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
run: |
2727
echo 'C:\msys64\mingw64\bin' >> "$GITHUB_PATH"
2828
echo 'C:\msys64\usr\bin' >> "$GITHUB_PATH"
29-
- name: Set up Python 3.6
29+
- name: Set up Python 3.8
3030
uses: actions/setup-python@v3
3131
with:
32-
python-version: 3.6
32+
python-version: 3.8
3333
- name: Install dependencies
3434
run: |
3535
pip install "solc-select>=v1.0.0b1"

.github/workflows/linter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
- name: Checkout Code
2020
uses: actions/checkout@v2
2121

22-
- name: Set up Python 3.6
22+
- name: Set up Python 3.8
2323
uses: actions/setup-python@v2
2424
with:
25-
python-version: 3.6
25+
python-version: 3.8
2626

2727
- name: Install dependencies
2828
run: |

.github/workflows/mypy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
- name: Checkout Code
2020
uses: actions/checkout@v2
2121

22-
- name: Set up Python 3.6
22+
- name: Set up Python 3.8
2323
uses: actions/setup-python@v2
2424
with:
25-
python-version: 3.6
25+
python-version: 3.8
2626

2727
- name: Install dependencies
2828
run: |

.github/workflows/pylint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
- name: Checkout Code
2020
uses: actions/checkout@v2
2121

22-
- name: Set up Python 3.6
22+
- name: Set up Python 3.8
2323
uses: actions/setup-python@v2
2424
with:
25-
python-version: 3.6
25+
python-version: 3.8
2626

2727
- name: Install dependencies
2828
run: |

crytic_compile/platform/brownie.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,9 @@ def _get_version(compiler: Dict) -> str:
206206
str: Compiler version
207207
"""
208208
version = compiler.get("version", "")
209-
version = version[len("Version: ") :]
210-
version = version[0 : version.find("+")]
209+
if "Version:" in version:
210+
version = version.split("Version:")[1].strip()
211+
version = version[0 : version.find("+")] # TODO handle not "+" not found
211212
return version
212213

213214

crytic_compile/platform/solc_standard_json.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import json
55
import logging
66
import os
7+
from pathlib import Path
78
import shutil
89
import subprocess
910
from typing import TYPE_CHECKING, Dict, List, Optional, Union, Any
@@ -132,7 +133,8 @@ def run_solc_standard_json(
132133
Returns:
133134
Dict: Solc json output
134135
"""
135-
cmd = [compiler_version.compiler, "--standard-json", "--allow-paths", "."]
136+
working_dir_resolved = Path(working_dir if working_dir else ".").resolve()
137+
cmd = [compiler_version.compiler, "--standard-json", "--allow-paths", str(working_dir_resolved)]
136138
additional_kwargs: Dict = {"cwd": working_dir} if working_dir else {}
137139

138140
env = dict(os.environ)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.black]
2-
target-version = ["py36"]
2+
target-version = ["py38"]
33
line-length = 100
44
[tool.pylint.messages_control]
55
disable = """

0 commit comments

Comments
 (0)