We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f832c5f commit d028385Copy full SHA for d028385
packages/xrpl/src/sugar/autofill.ts
@@ -159,7 +159,7 @@ function validateAccountAddress(
159
const val: unknown = tx[accountField]
160
161
if (typeof val !== 'string') {
162
- throw new Error(`${accountField} must be a string`)
+ throw new ValidationError(`${accountField} must be a string`)
163
}
164
// if X-address is given, convert it to classic address
165
const { classicAccount, tag } = getClassicAccountAndTag(val)
0 commit comments