|
|
@ -170,6 +170,7 @@ class Recorder { |
|
|
|
run (records, accounts, options, abis, newContractFn) { |
|
|
|
run (records, accounts, options, abis, newContractFn) { |
|
|
|
var self = this |
|
|
|
var self = this |
|
|
|
self.setListen(false) |
|
|
|
self.setListen(false) |
|
|
|
|
|
|
|
self._api.logMessage('Running transactions ...') |
|
|
|
async.eachSeries(records, function (tx, cb) { |
|
|
|
async.eachSeries(records, function (tx, cb) { |
|
|
|
var record = self.resolveAddress(tx.record, accounts, options) |
|
|
|
var record = self.resolveAddress(tx.record, accounts, options) |
|
|
|
var abi = abis[tx.record.abi] |
|
|
|
var abi = abis[tx.record.abi] |
|
|
@ -199,6 +200,7 @@ class Recorder { |
|
|
|
self._api.udapp().rerunTx(record, function (err, txResult) { |
|
|
|
self._api.udapp().rerunTx(record, function (err, txResult) { |
|
|
|
if (err) { |
|
|
|
if (err) { |
|
|
|
console.error(err) |
|
|
|
console.error(err) |
|
|
|
|
|
|
|
self._api.logMessage(err + '. Execution stopped') |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
var address = executionContext.isVM() ? txResult.result.createdAddress : txResult.result.contractAddress |
|
|
|
var address = executionContext.isVM() ? txResult.result.createdAddress : txResult.result.contractAddress |
|
|
|
if (address) { |
|
|
|
if (address) { |
|
|
|