From 0afcea37d27b934dc55db11ce2e0ef03ccf2db9f Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 24 Jul 2018 15:16:18 +0200 Subject: [PATCH] add autdeploylib property to metadata --- src/app/files/compiler-metadata.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/files/compiler-metadata.js b/src/app/files/compiler-metadata.js index fe759c19a3..8a29287e84 100644 --- a/src/app/files/compiler-metadata.js +++ b/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')) } })