We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48dbdd8 commit fbe0526Copy full SHA for fbe0526
‎src/settlements/dto/offchain-signature.dto.ts
@@ -2,7 +2,7 @@
2
3
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
4
import { SignerKeyRingType } from '@polymeshassociation/polymesh-sdk/types';
5
-import { IsEnum, IsOptional } from 'class-validator';
+import { IsEnum, IsHexadecimal, IsOptional } from 'class-validator';
6
7
export class OffChainSignatureDto {
8
@ApiProperty({
@@ -21,5 +21,6 @@ export class OffChainSignatureDto {
21
'0x12e368f3f697aa51fabf9977244c3531059a23637d05e3122b08259d2127792dc27bc9fe1a12660c0ac74ca4bd520955901d54c76c25e747356c93161654f586',
22
})
23
@IsOptional()
24
+ @IsHexadecimal()
25
readonly value?: `0x${string}`;
26
}
0 commit comments