xrpl.js
xrpl.js copied to clipboard
TransactionStream type is wrong when using API version 2
In src/models/methods/subscribe.ts, line 289 the TransactionStream type declares a field called transaction which contains the main transaction data.
However, in reality, when using API version 2, this field appears to be called tx_json now.
It appears that similar changes were in fact taken into account in other places, such as here in accountTx.ts but overlooked in this instance.