Skip to content

Commit

Permalink
fix TypeError when using older solc
Browse files Browse the repository at this point in the history
  • Loading branch information
ewiner authored Dec 29, 2017
1 parent a2b60f0 commit faf464e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/recorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>'
Expand Down

0 comments on commit faf464e

Please sign in to comment.