Merge pull request #1310 from ethereum/fix/#1199

bytecode updated after library linking
pull/5370/head
yann300 5 years ago committed by GitHub
commit cdf798c1f8
  1. 5
      remix-lib/src/execution/txFormat.js

@ -308,7 +308,10 @@ module.exports = {
if (bytecode.indexOf('_') >= 0) {
this.linkBytecode(library, contracts, (err, bytecode) => {
if (err) callback(err)
else this.deployLibrary(libraryName, libraryShortName, library, contracts, callback, callbackStep, callbackDeployLibrary)
else {
library.evm.bytecode.object = bytecode
this.deployLibrary(libraryName, libraryShortName, library, contracts, callback, callbackStep, callbackDeployLibrary)
}
}, callbackStep, callbackDeployLibrary)
} else {
callbackStep(`creation of library ${libraryName} pending...`)

Loading…
Cancel
Save