add autdeploylib property to metadata

pull/3094/head
yann300 6 years ago
parent c4ed78afdb
commit 0afcea37d2
  1. 3
      src/app/files/compiler-metadata.js

@ -26,7 +26,9 @@ class CompilerMetadata {
console.log(e)
}
var linkReferences = metadata['linkReferences']
var autoDeployLib = metadata['autoDeployLib']
if (!linkReferences) linkReferences = {}
if (autoDeployLib === undefined) autoDeployLib = true
for (var libFile in contract.object.evm.bytecode.linkReferences) {
if (!linkReferences[libFile]) linkReferences[libFile] = {}
for (var lib in contract.object.evm.bytecode.linkReferences[libFile]) {
@ -36,6 +38,7 @@ class CompilerMetadata {
}
}
metadata['linkReferences'] = linkReferences
metadata['autoDeployLib'] = autoDeployLib
provider.set(fileName, JSON.stringify(metadata, null, '\t'))
}
})

Loading…
Cancel
Save