fix library deploy

pull/3094/head
yann300 7 years ago
parent 8af71ab32d
commit d8d7241a6a
  1. 4
      src/app/execution/txFormat.js

@ -79,7 +79,7 @@ module.exports = {
callback('Error deploying required libraries: ' + err) callback('Error deploying required libraries: ' + err)
} else { } else {
bytecodeToDeploy = bytecode + dataHex bytecodeToDeploy = bytecode + dataHex
return callback(null, bytecodeToDeploy) return callback(null, { dataHex: bytecodeToDeploy, funAbi, funArgs, contractBytecode })
} }
}, callbackStep) }, callbackStep)
return return
@ -143,7 +143,7 @@ module.exports = {
}, callbackStep) }, callbackStep)
} else { } else {
callbackStep(`creation of library ${libraryName} pending...`) callbackStep(`creation of library ${libraryName} pending...`)
var data = {dataHex: bytecode} var data = {dataHex: bytecode, funAbi: {type: 'constructor'}, funArgs: [], contractBytecode: bytecode}
udapp.runTx({ data: data, useCall: false }, (err, txResult) => { udapp.runTx({ data: data, useCall: false }, (err, txResult) => {
if (err) { if (err) {
return callback(err) return callback(err)

Loading…
Cancel
Save