diff --git a/indexer/services/comlink/__tests__/lib/validation/schemas.test.ts b/indexer/services/comlink/__tests__/lib/validation/schemas.test.ts index 9c9ffb74fb..399e7fe15c 100644 --- a/indexer/services/comlink/__tests__/lib/validation/schemas.test.ts +++ b/indexer/services/comlink/__tests__/lib/validation/schemas.test.ts @@ -17,7 +17,12 @@ describe('schemas', () => { const defaultAddress: string = testConstants.defaultSubaccount.address; describe('CheckSubaccountSchema', () => { it.each([ - ['missing address', { subaccountNumber: defaultSubaccountNumber }, 'address', 'Invalid value'], + [ + 'missingaddress', + { subaccountNumber: defaultSubaccountNumber }, + 'address', + 'address must be a valid dydx address', + ], [ 'missing subaccountNumber', { address: defaultAddress }, diff --git a/indexer/services/comlink/src/lib/validation/schemas.ts b/indexer/services/comlink/src/lib/validation/schemas.ts index 0d2ce534b7..4156a2d1ea 100644 --- a/indexer/services/comlink/src/lib/validation/schemas.ts +++ b/indexer/services/comlink/src/lib/validation/schemas.ts @@ -52,7 +52,7 @@ export const checkAddressSchemaRecord: Record = { custom: { options: isValidAddress, }, - errorMessage: 'address must be a valid dydx address', + errorMessage: 'address must be a valid address', }, };