Skip to content

Commit d028385

Browse files
committed
fix autofill error type
1 parent f832c5f commit d028385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/xrpl/src/sugar/autofill.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function validateAccountAddress(
159159
const val: unknown = tx[accountField]
160160

161161
if (typeof val !== 'string') {
162-
throw new Error(`${accountField} must be a string`)
162+
throw new ValidationError(`${accountField} must be a string`)
163163
}
164164
// if X-address is given, convert it to classic address
165165
const { classicAccount, tag } = getClassicAccountAndTag(val)

0 commit comments

Comments
 (0)