Skip to content

Commit

Permalink
Skip interfaces in dependency deployment
Browse files Browse the repository at this point in the history
Interfaces compile to empty bytecode, which leads to errors in the
deployment function.
  • Loading branch information
konradkonrad authored and LefterisJP committed Jun 2, 2017
1 parent 73e1f23 commit 123442f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tools/create_compilation_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,7 @@ def deploy_all(token_groups=None):
tokens[token_name] = address
deployed[token_name] = address

deployed.update(
deploy_with_dependencies(
TARGETS['token'],
state
)
)
libraries = deployed.copy()
libraries = dict()
deployed.update(
deploy_with_dependencies(
TARGETS['registry'],
Expand Down Expand Up @@ -202,6 +196,13 @@ def find_dependencies(contract_file):
for dependency in dependencies:
if dependency not in cleaned:
cleaned.append(dependency)
dependencies = cleaned
cleaned = []
for dependency in dependencies:
with open(get_contract_path(dependency)) as handler:
if any(line.startswith('interface') for line in handler.readlines()):
continue
cleaned.append(dependency)
return cleaned


Expand Down

0 comments on commit 123442f

Please sign in to comment.