|
|
@ -28,11 +28,11 @@ class SolidityContract(ETHContract): |
|
|
|
code = file.read() |
|
|
|
code = file.read() |
|
|
|
self.solidity_files.append(SolidityFile(filename, code)) |
|
|
|
self.solidity_files.append(SolidityFile(filename, code)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
has_contract = False |
|
|
|
|
|
|
|
|
|
|
|
for key, contract in data['contracts'].items(): |
|
|
|
for key, contract in data['contracts'].items(): |
|
|
|
filename, name = key.split(":") |
|
|
|
filename, name = key.split(":") |
|
|
|
|
|
|
|
|
|
|
|
has_contract = False |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if filename == input_file and len(contract['bin-runtime']): |
|
|
|
if filename == input_file and len(contract['bin-runtime']): |
|
|
|
self.name = name |
|
|
|
self.name = name |
|
|
|
self.code = contract['bin-runtime'] |
|
|
|
self.code = contract['bin-runtime'] |
|
|
|