Commit bd18486e authored by chriseth's avatar chriseth

Merge pull request #36 from redsquirrel/lib-lookup

Looking up libraryName instead of contractName
parents ed460f09 184da383
...@@ -499,7 +499,7 @@ UniversalDApp.prototype.linkBytecode = function(contractName, cb) { ...@@ -499,7 +499,7 @@ UniversalDApp.prototype.linkBytecode = function(contractName, cb) {
if (!m) if (!m)
return cb("Invalid bytecode format."); return cb("Invalid bytecode format.");
var libraryName = m[1]; var libraryName = m[1];
if (!this.getContractByName(contractName)) if (!this.getContractByName(libraryName))
return cb("Library " + libraryName + " not found."); return cb("Library " + libraryName + " not found.");
var self = this; var self = this;
this.deployLibrary(libraryName, function(err, address) { this.deployLibrary(libraryName, function(err, address) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment