Added logging for successful tx

This commit is contained in:
Pol.Alvarez@BSC 2018-02-27 11:32:12 +01:00
parent 5f5728d28e
commit 22dc42c25c
1 changed files with 1 additions and 0 deletions

View File

@ -152,6 +152,7 @@ const sendTransaction = function (to, amount, gasPrice) {
return new Promise((resolve, reject) => {
wallet.sendTransaction(signedTransaction)
.then(function(hash) {
logTransaction(hash, config.sourceAddress, to, amount, gasPrice);
resolve(hash);
}).catch(function(err) {
reject(err);