Merge pull request #968 from ewiner/patch-1

Fix TypeError when using older solc
pull/1/head
yann300 7 years ago committed by GitHub
commit 96eef9344f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/recorder.js

@ -41,7 +41,7 @@ class Recorder {
record.contractName = payLoad.contractName record.contractName = payLoad.contractName
record.bytecode = payLoad.contractBytecode record.bytecode = payLoad.contractBytecode
record.linkReferences = selectedContract.object.evm.bytecode.linkReferences record.linkReferences = selectedContract.object.evm.bytecode.linkReferences
if (Object.keys(record.linkReferences).length) { if (record.linkReferences && Object.keys(record.linkReferences).length) {
for (var file in record.linkReferences) { for (var file in record.linkReferences) {
for (var lib in record.linkReferences[file]) { for (var lib in record.linkReferences[file]) {
self.data._linkReferences[lib] = '<address>' self.data._linkReferences[lib] = '<address>'

Loading…
Cancel
Save