We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acd79d1 commit 6bdd4b2Copy full SHA for 6bdd4b2
src/js/ripple/transactionmanager.js
@@ -46,8 +46,16 @@ function TransactionManager(account) {
46
}
47
48
if (submission instanceof Transaction) {
49
+
50
// ND: A `success` handler will `finalize` this later
- submission.emit('success', transaction);
51
+ switch (transaction.engine_result) {
52
+ case 'tesSUCCESS':
53
+ submission.emit('success', transaction);
54
+ break;
55
+ default:
56
+ submission.emit('error', transaction);
57
+ }
58
59
} else {
60
self._pending.addReceivedId(hash, transaction);
61
@@ -413,8 +421,6 @@ TransactionManager.prototype._request = function(tx) {
413
421
if (tx.finalized) {
414
422
return;
415
423
416
-
417
- tx.emit('error', message);
418
424
};
419
425
420
426
function transactionFailedLocal(message) {
0 commit comments