Commit a3f3def2 authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #409 from ethereum/linkinglib

Fix linking
parents 08d53338 e981611b
......@@ -706,11 +706,11 @@ UniversalDApp.prototype.deployLibrary = function (contractName, cb) {
else self.deployLibrary(contractName, cb)
})
} else {
self.runTx({ data: bytecode, useCall: false }, function (err, result) {
self.runTx({ data: bytecode, useCall: false }, function (err, txResult) {
if (err) {
return cb(err)
}
var address = self.executionContext.isVM() ? result.createdAddress : result.contractAddress
var address = self.executionContext.isVM() ? txResult.result.createdAddress : txResult.result.contractAddress
self.getContractByName(contractName).address = address
cb(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