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) => {
|
return new Promise((resolve, reject) => {
|
||||||
wallet.sendTransaction(signedTransaction)
|
wallet.sendTransaction(signedTransaction)
|
||||||
.then(function(hash) {
|
.then(function(hash) {
|
||||||
|
logTransaction(hash, config.sourceAddress, to, amount, gasPrice);
|
||||||
resolve(hash);
|
resolve(hash);
|
||||||
}).catch(function(err) {
|
}).catch(function(err) {
|
||||||
reject(err);
|
reject(err);
|
||||||
|
|
Loading…
Reference in New Issue