|
|
@ -51,6 +51,7 @@ class SolidityContract(ETHContract): |
|
|
|
if filename == input_file and name == _name: |
|
|
|
if filename == input_file and name == _name: |
|
|
|
name = name |
|
|
|
name = name |
|
|
|
code = contract['bin-runtime'] |
|
|
|
code = contract['bin-runtime'] |
|
|
|
|
|
|
|
abi = contract['abi'] |
|
|
|
creation_code = contract['bin'] |
|
|
|
creation_code = contract['bin'] |
|
|
|
srcmap = contract['srcmap-runtime'].split(";") |
|
|
|
srcmap = contract['srcmap-runtime'].split(";") |
|
|
|
has_contract = True |
|
|
|
has_contract = True |
|
|
@ -65,6 +66,7 @@ class SolidityContract(ETHContract): |
|
|
|
if filename == input_file and len(contract['bin-runtime']): |
|
|
|
if filename == input_file and len(contract['bin-runtime']): |
|
|
|
name = name |
|
|
|
name = name |
|
|
|
code = contract['bin-runtime'] |
|
|
|
code = contract['bin-runtime'] |
|
|
|
|
|
|
|
abi = contract['abi'] |
|
|
|
creation_code = contract['bin'] |
|
|
|
creation_code = contract['bin'] |
|
|
|
srcmap = contract['srcmap-runtime'].split(";") |
|
|
|
srcmap = contract['srcmap-runtime'].split(";") |
|
|
|
has_contract = True |
|
|
|
has_contract = True |
|
|
@ -89,6 +91,7 @@ class SolidityContract(ETHContract): |
|
|
|
lineno = self.solidity_files[idx].data[0:offset].count('\n') + 1 |
|
|
|
lineno = self.solidity_files[idx].data[0:offset].count('\n') + 1 |
|
|
|
|
|
|
|
|
|
|
|
self.mappings.append(SourceMapping(idx, offset, length, lineno)) |
|
|
|
self.mappings.append(SourceMapping(idx, offset, length, lineno)) |
|
|
|
|
|
|
|
self.abi = abi |
|
|
|
|
|
|
|
|
|
|
|
super().__init__(code, creation_code, name=name) |
|
|
|
super().__init__(code, creation_code, name=name) |
|
|
|
|
|
|
|
|
|
|
|