Skip to content

Commit 067aa6f

Browse files
committed
Export linkReferences in jsonio translator
1 parent 2b9e51c commit 067aa6f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

translate.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
var linker = require('./linker.js');
2+
13
/// Translate old style version numbers to semver.
24
/// Old style: 0.3.6-3fc68da5/Release-Emscripten/clang
35
/// 0.3.5-371690f0/Release-Emscripten/clang/Interpreter
@@ -110,11 +112,13 @@ function translateJsonCompilerOutput (output) {
110112
'bytecode': {
111113
'object': contractInput['bytecode'],
112114
'opcodes': contractInput['opcodes'],
113-
'sourceMap': contractInput['srcmap']
115+
'sourceMap': contractInput['srcmap'],
116+
'linkReferences': linker.findLinkReferences(contractInput['bytecode'])
114117
},
115118
'deployedBytecode': {
116119
'object': contractInput['runtimeBytecode'],
117-
'sourceMap': contractInput['srcmapRuntime']
120+
'sourceMap': contractInput['srcmapRuntime'],
121+
'linkReferences': linker.findLinkReferences(contractInput['runtimeBytecode'])
118122
},
119123
'methodIdentifiers': contractInput['functionHashes'],
120124
'gasEstimates': translatedGasEstimates

0 commit comments

Comments
 (0)