Added logging for successful tx
This commit is contained in:
parent
5f5728d28e
commit
22dc42c25c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue