mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-04 13:05:49 +00:00
feat: enable 1.10.0 amendments for tests (#2356)
- `NFTokenMint` needs `NonFungibleTokensV1_1` enabled instead of `NonFungibleTokensV1` . - `fee_ref` is no longer returned after `XRPFees` amendment is enabled.
This commit is contained in:
@@ -110,7 +110,7 @@ validators.txt
|
||||
# If you need the version of rippled to be more up to date, you may need to make a comment on this repo: https://github.com/WietseWind/docker-rippled
|
||||
|
||||
[amendments]
|
||||
# Devnet amendments as of March 28th, 2023
|
||||
# Devnet amendments as of June 28th, 2023
|
||||
B4E4F5D2D6FB84DF7399960A732309C9FD530EAE5941838160042833625A6076 NegativeUNL
|
||||
DF8B4536989BDACE3F934F29423848B9F1D76D09BE6A1FCFE7E7F06AA26ABEAD fixRemoveNFTokenAutoTrustLine
|
||||
3C43D9A973AA4443EF3FC38E42DD306160FBFFDAB901CD8BAA15D09F2597EB87 NonFungibleTokensV1
|
||||
@@ -156,3 +156,11 @@ E2E6F2866106419B88C50045ACE96368558C345566AC8F2BDF5A5B5587F0E6FA fix1368
|
||||
42EEA5E28A97824821D4EF97081FE36A54E9593C6E4F20CBAE098C69D2E072DC fix1373
|
||||
4C97EBA926031A7CF7D7B36FDE3ED66DDA5421192D63DE53FFB46E43B9DC8373 MultiSign
|
||||
157D2D480E006395B76F948E3E07A45A05FE10230D88A7993C71F97AE4B1F2D1 Checks
|
||||
32A122F1352A4C7B3A6D790362CC34749C5E57FCE896377BFDC6CCD14F6CD627 NonFungibleTokensV1_1
|
||||
# 1.10.0 Amendments
|
||||
47C3002ABA31628447E8E9A8B315FAA935CE30183F9A9B86845E469CA2CDC3DF DisallowIncoming
|
||||
73761231F7F3D94EC3D8C63D91BDD0D89045C6F71B917D1925C01253515A6669 fixNonFungibleTokensV1_2
|
||||
F1ED6B4A411D8B872E65B9DCB4C8B100375B0DD3D62D07192E011D6D7F339013 fixTrustLinesToSelf
|
||||
2E2FB9CF8A44EB80F4694D38AADAE9B8B7ADAFD2F092E10068E61C98C4F092B0 fixUniversalNumber
|
||||
75A7E01C505DD5A179DFE3E000A9B6F1EDDEB55A12F95579A23E15B15DC8BE5A ImmediateOfferKilled
|
||||
93E516234E35E08CA689FA33A6D38E103881F8DCB53023F728C307AA89D515A7 XRPFees
|
||||
|
||||
@@ -102,8 +102,8 @@ export interface LedgerStream extends BaseStream {
|
||||
* Transaction cost applies starting with the following ledger version.
|
||||
*/
|
||||
fee_base: number
|
||||
/** The reference transaction cost in "fee units". */
|
||||
fee_ref: number
|
||||
/** The reference transaction cost in "fee units". This is not returned after the SetFees amendment is enabled. */
|
||||
fee_ref?: number
|
||||
/** The identifying hash of the ledger version that was closed. */
|
||||
ledger_hash: string
|
||||
/** The ledger index of the ledger that was closed. */
|
||||
@@ -143,8 +143,8 @@ export interface LedgerStreamResponse {
|
||||
* Transaction cost applies starting with the following ledger version.
|
||||
*/
|
||||
fee_base: number
|
||||
/** The reference transaction cost in "fee units". */
|
||||
fee_ref: number
|
||||
/** The reference transaction cost in "fee units". This is not returned after the SetFees amendment is enabled. */
|
||||
fee_ref?: number
|
||||
/** The identifying hash of the ledger version that was closed. */
|
||||
ledger_hash: string
|
||||
/** The ledger index of the ledger that was closed. */
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
"type": "response",
|
||||
"result": {
|
||||
"fee_base": 10,
|
||||
"fee_ref": 10,
|
||||
"hostid": "NAP",
|
||||
"ledger_hash": "60EBABF55F6AB58864242CADA0B24FBEA027F2426917F39CA56576B335C0065A",
|
||||
"ledger_index": 8819951,
|
||||
|
||||
@@ -158,7 +158,6 @@ describe('subscribe', function () {
|
||||
// Explicitly checking that there are only known fields in the return
|
||||
const expectedResult = {
|
||||
fee_base: ledgerResponse.fee_base,
|
||||
fee_ref: ledgerResponse.fee_ref,
|
||||
ledger_hash: ledgerResponse.ledger_hash,
|
||||
ledger_index: ledgerResponse.ledger_index,
|
||||
ledger_time: ledgerResponse.ledger_time,
|
||||
@@ -166,7 +165,6 @@ describe('subscribe', function () {
|
||||
reserve_inc: ledgerResponse.reserve_inc,
|
||||
validated_ledgers: ledgerResponse.validated_ledgers,
|
||||
}
|
||||
|
||||
assert.equal(response.type, 'response')
|
||||
assert.deepEqual(response.result, expectedResult)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user