Skip to content

Commit fbe0526

Browse files
chore: 🤖 add IsHexadecimal to signature value
1 parent 48dbdd8 commit fbe0526

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/settlements/dto/offchain-signature.dto.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

77
export class OffChainSignatureDto {
88
@ApiProperty({
@@ -21,5 +21,6 @@ export class OffChainSignatureDto {
2121
'0x12e368f3f697aa51fabf9977244c3531059a23637d05e3122b08259d2127792dc27bc9fe1a12660c0ac74ca4bd520955901d54c76c25e747356c93161654f586',
2222
})
2323
@IsOptional()
24+
@IsHexadecimal()
2425
readonly value?: `0x${string}`;
2526
}

0 commit comments

Comments
 (0)