Skip to content

Commit

Permalink
chore: 🤖 add IsHexadecimal to signature value
Browse files Browse the repository at this point in the history
  • Loading branch information
prashantasdeveloper committed Jul 17, 2024
1 parent 48dbdd8 commit fbe0526
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/settlements/dto/offchain-signature.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { SignerKeyRingType } from '@polymeshassociation/polymesh-sdk/types';
import { IsEnum, IsOptional } from 'class-validator';
import { IsEnum, IsHexadecimal, IsOptional } from 'class-validator';

export class OffChainSignatureDto {
@ApiProperty({
Expand All @@ -21,5 +21,6 @@ export class OffChainSignatureDto {
'0x12e368f3f697aa51fabf9977244c3531059a23637d05e3122b08259d2127792dc27bc9fe1a12660c0ac74ca4bd520955901d54c76c25e747356c93161654f586',
})
@IsOptional()
@IsHexadecimal()
readonly value?: `0x${string}`;
}

0 comments on commit fbe0526

Please sign in to comment.