mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-04 21:15:47 +00:00
Remove sequence from AccountFields
This commit is contained in:
@@ -26,7 +26,6 @@ const AccountFlagIndices = {
|
||||
};
|
||||
|
||||
const AccountFields = {
|
||||
Sequence: {name: 'sequence'},
|
||||
EmailHash: {name: 'emailHash', encoding: 'hex',
|
||||
length: 32, defaults: '0'},
|
||||
WalletLocator: {name: 'walletLocator', encoding: 'hex',
|
||||
|
||||
@@ -36,6 +36,7 @@ function parseTransaction(tx: Object): Object {
|
||||
return utils.removeUndefined({
|
||||
type: type,
|
||||
address: tx.Account,
|
||||
sequence: tx.Sequence,
|
||||
id: tx.hash,
|
||||
specification: utils.removeUndefined(specification),
|
||||
outcome: outcome ? utils.removeUndefined(outcome) : undefined
|
||||
|
||||
@@ -62,8 +62,7 @@ function parseOutcome(tx: Object): ?Object {
|
||||
balanceChanges: balanceChanges,
|
||||
orderbookChanges: orderbookChanges,
|
||||
ledgerVersion: tx.ledger_index,
|
||||
indexInLedger: tx.meta.TransactionIndex,
|
||||
sequence: tx.Sequence
|
||||
indexInLedger: tx.meta.TransactionIndex
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
{
|
||||
"type": "payment",
|
||||
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
||||
"sequence": 4,
|
||||
"id": "4C37C92576DEB000D13B07F4D3F99F968BD86B6B83A840BEFFB2BFC8A042A81B",
|
||||
"specification": {
|
||||
"source": {
|
||||
@@ -80,14 +81,14 @@
|
||||
]
|
||||
},
|
||||
"ledgerVersion": 348860,
|
||||
"indexInLedger": 0,
|
||||
"sequence": 4
|
||||
"indexInLedger": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "payment",
|
||||
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
||||
"id": "4C37C92576DEB000D13B07F4D3F99F968BD86B6B83A840BEFFB2BFC8A042A81B",
|
||||
"sequence": 4,
|
||||
"specification": {
|
||||
"source": {
|
||||
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
||||
@@ -165,8 +166,7 @@
|
||||
]
|
||||
},
|
||||
"ledgerVersion": 348860,
|
||||
"indexInLedger": 0,
|
||||
"sequence": 4
|
||||
"indexInLedger": 0
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
1
test/fixtures/get-settings-response.json
vendored
1
test/fixtures/get-settings-response.json
vendored
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"requireDestinationTag": true,
|
||||
"disallowIncomingXRP": true,
|
||||
"sequence": 23,
|
||||
"emailHash": "23463B99B62A72F26ED677CC556C44E8",
|
||||
"walletLocator": "00000000000000000000000000000000000000000000000000000000DEADBEEF",
|
||||
"domain": "example.com",
|
||||
|
||||
7
test/fixtures/settings-tx-response.json
vendored
7
test/fixtures/settings-tx-response.json
vendored
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"type": "settings",
|
||||
"address": "rLVKsA4F9iJBbA6rX2x4wCmkj6drgtqpQe",
|
||||
"sequence": 1,
|
||||
"id": "4FB3ADF22F3C605E23FAEFAA185F3BD763C4692CAC490D9819D117CD33BFAA1B",
|
||||
"specification": {
|
||||
"requireAuthorization": true,
|
||||
"disallowIncomingXRP": true,
|
||||
"globalFreeze": false,
|
||||
"sequence": 1
|
||||
"globalFreeze": false
|
||||
},
|
||||
"outcome": {
|
||||
"result": "tesSUCCESS",
|
||||
@@ -22,7 +22,6 @@
|
||||
},
|
||||
"orderbookChanges": {},
|
||||
"ledgerVersion": 8206418,
|
||||
"indexInLedger": 5,
|
||||
"sequence": 1
|
||||
"indexInLedger": 5
|
||||
}
|
||||
}
|
||||
|
||||
4
test/fixtures/transaction-response.json
vendored
4
test/fixtures/transaction-response.json
vendored
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"type": "payment",
|
||||
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
||||
"sequence": 4,
|
||||
"id": "F4AB442A6D4CBB935D66E1DA7309A5FC71C7143ED4049053EC14E3875B0CF9BF",
|
||||
"specification": {
|
||||
"source": {
|
||||
@@ -80,7 +81,6 @@
|
||||
]
|
||||
},
|
||||
"ledgerVersion": 348860,
|
||||
"indexInLedger": 0,
|
||||
"sequence": 4
|
||||
"indexInLedger": 0
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user