mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-21 12:45:50 +00:00
Change "success" event parameters to more closely match "proposed" and "error".
This commit is contained in:
@@ -28,8 +28,8 @@ function TransactionManager(account) {
|
|||||||
// transaction sequence number
|
// transaction sequence number
|
||||||
this._load_sequence();
|
this._load_sequence();
|
||||||
|
|
||||||
function cache_transaction(transaction) {
|
function cache_transaction(res) {
|
||||||
var transaction = TransactionManager.normalize_transaction(transaction);
|
var transaction = TransactionManager.normalize_transaction(res);
|
||||||
var sequence = transaction.tx_json.Sequence;
|
var sequence = transaction.tx_json.Sequence;
|
||||||
var hash = transaction.hash;
|
var hash = transaction.hash;
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ function TransactionManager(account) {
|
|||||||
var pending = self._pending.get('_hash', hash);
|
var pending = self._pending.get('_hash', hash);
|
||||||
|
|
||||||
if (pending) {
|
if (pending) {
|
||||||
pending.emit('success', transaction);
|
pending.emit('success', res);
|
||||||
} else {
|
} else {
|
||||||
self._cache[hash] = transaction;
|
self._cache[hash] = transaction;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user