From e981611ba48bbeb0c5faf8020ae32059beef8011 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 1 Feb 2017 14:21:42 +0100 Subject: [PATCH] fix linking --- src/universal-dapp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/universal-dapp.js b/src/universal-dapp.js index 2347752e99..70f4c907fd 100644 --- a/src/universal-dapp.js +++ b/src/universal-dapp.js @@ -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) })