Looking up libraryName instead of contractName

pull/1/head
Dave Hoover 9 years ago
parent ed460f09c6
commit 184da383db
  1. 2
      src/universal-dapp.js

@ -499,7 +499,7 @@ UniversalDApp.prototype.linkBytecode = function(contractName, cb) {
if (!m)
return cb("Invalid bytecode format.");
var libraryName = m[1];
if (!this.getContractByName(contractName))
if (!this.getContractByName(libraryName))
return cb("Library " + libraryName + " not found.");
var self = this;
this.deployLibrary(libraryName, function(err, address) {

Loading…
Cancel
Save