Coin Brief ENDE

xrpl.js 5.4.0-smartcontract.0 pre-release brings the smart contract line up to date with main

The XRP Ledger's JavaScript library xrpl.js published a pre-release tagged xrpl@5.4.0-smartcontract.0 on 9 November. As the name says, it belongs to the library's smart contract line, separate from the regular releases, and its changelog compares it with the previous tag on that line, ripple-binary-codec@2.8.0-smartcontract.0. Most of what it contains is work that has already shipped in regular xrpl.js versions, carried over into the smart contract builds.

The feature list is long. It includes support for Dynamic MPTs under XLS-94 and later updates to that standard, Confidential MPTs under XLS-96, sponsorship under XLS-68 together with signing prefixes for the fixCleanup3_4_0 amendment, BatchV1_1 and Lending Protocol V1_1. A ReferenceHolding field was added to MPToken issuance and to vault share information, and updated binary codec definitions are included.

Several fixes concern how the library treats input. Wallet.fromSeed and fromSecret now infer the signing algorithm from the seed prefix, Wallet.fromEntropy and generateSeed throw on invalid entropy, non-UTF-8 input no longer crashes the library, and hex fields in transaction models are validated as hex strings. On the connection side, reserved internal event types sent by a server are now blocked, and error handling was improved. Batch transactions also got corrections: inner transactions may carry LastLedgerSequence, the sponsor of a sponsored inner transaction must sign the batch, and a confidential MPT send to a holder clawed back earlier in the same batch is allowed. VaultCreate autofill now uses the base fee.

The release is marked as a pre-release, and the notes do not describe what the smart contract line adds beyond main.

xrpl.js 5.4.0-smartcontract.0 pre-release brings the smart contract line up to date with main
xrpl.js 5.4.0-smartcontract.0 pre-release brings the smart contract line up to date with main — Coin Brief

Why it matters

Keeping an experimental branch current with the main library is what lets developers test new features against today's transaction types rather than an old snapshot. The input-validation fixes matter for anyone deriving wallets from user-supplied seeds or entropy, on either line.