You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
achowdhry-ripple
changed the title
parseTransactionFlags unintentionally mutates the passed in Transaction object
parseTransactionFlags unintentionally mutates Transaction object
Nov 11, 2024
https://github.com/XRPLF/xrpl.js/blob/main/packages/xrpl/src/models/utils/flags.ts#L100
This line of code mutates the provided Transaction object, which is an unexpected side effect from this function.
Use convertFlagsToNumber directly to eliminate this issue.
Also remove all usages of setTransactionFlagsToNumber with convertFlagsToNumber and deprecate the method.
The text was updated successfully, but these errors were encountered: