fix TypeError when using older solc

pull/1/head
Eric Winer 7 years ago committed by GitHub
parent a2b60f0f95
commit faf464eb26
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.bytecode = payLoad.contractBytecode
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 lib in record.linkReferences[file]) {
self.data._linkReferences[lib] = '<address>'

Loading…
Cancel
Save