xrpl.js
xrpl.js copied to clipboard
Better error message in `submitAndWait` for incorrectly serialized transaction
Currently, if you pass in an incorrectly serialized transaction (say, in base64), you get the error
ValidationError: Wallet must be provided when submitting an unsigned transaction
This is very confusing and unhelpful.
The method should probably also strip whitespace at the beginning and end of the tx blob.