Skip to content

Commit

Permalink
fix create account xpub validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Sramko committed Aug 17, 2021
1 parent 5c30fa0 commit 1d8f8ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tatumio/tatum",
"version": "1.21.3",
"version": "1.21.4",
"description": "Tatum API client allows browsers and Node.js clients to interact with Tatum API.",
"main": "dist/src/index.js",
"repository": "https://github.com/tatumio/tatum-js",
Expand Down
10 changes: 5 additions & 5 deletions src/model/request/CreateAccount.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import {Type} from 'class-transformer'
import {IsBoolean, IsIn, IsNotEmpty, IsOptional, Length, MaxLength, ValidateNested} from 'class-validator'
import {Fiat} from '../response'
import {CustomerUpdate} from './CustomerUpdate'
import {Type} from 'class-transformer';
import {IsBoolean, IsIn, IsNotEmpty, IsOptional, Length, MaxLength, ValidateNested} from 'class-validator';
import {Fiat} from '../response';
import {CustomerUpdate} from './CustomerUpdate';

export class CreateAccount {

@IsNotEmpty()
@Length(2, 40)
public currency: string;

@MaxLength(192)
@MaxLength(256)
@IsOptional()
public xpub?: string;

Expand Down

0 comments on commit 1d8f8ff

Please sign in to comment.