Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions raiden/blockchain/abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
from raiden.utils import get_contract_path
from raiden.constants import MIN_REQUIRED_SOLC

from distutils.version import LooseVersion

__all__ = (
'CONTRACT_MANAGER',

Expand Down Expand Up @@ -134,6 +136,13 @@ def validate_solc():
"Make sure the solidity compiler is installed and available on your $PATH."
)

elif LooseVersion(_solidity.compiler_version()) < LooseVersion(MIN_REQUIRED_SOLC[1:]):
raise RuntimeError(
'You are currently using the solidity compiler version {}.\n'
'Please upgrade to the minimum compatible version {}.'.format(
_solidity.compiler_version(), MIN_REQUIRED_SOLC)
)

try:
_solidity.compile_contract(
get_contract_path('HumanStandardToken.sol'),
Expand Down