Commit 4a40c815 authored by yann300's avatar yann300

add log

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