Skip to content

Commit

Permalink
add store data MATIC support
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Sramko committed Aug 16, 2021
1 parent cf968a4 commit f0cba02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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.19.16",
"version": "1.19.17",
"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
12 changes: 6 additions & 6 deletions src/model/request/CreateRecord.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {Type} from 'class-transformer'
import {IsIn, IsNotEmpty, IsOptional, IsUUID, Length, Min, Validate, ValidateIf, ValidateNested,} from 'class-validator'
import {SignatureIdValidator} from '../validation/SignatureIdValidator'
import {Currency} from './Currency'
import {Fee} from './Fee'
import {Type} from 'class-transformer';
import {IsIn, IsNotEmpty, IsOptional, IsUUID, Length, Min, Validate, ValidateIf, ValidateNested,} from 'class-validator';
import {SignatureIdValidator} from '../validation/SignatureIdValidator';
import {Currency} from './Currency';
import {Fee} from './Fee';

export class CreateRecord {

Expand All @@ -24,7 +24,7 @@ export class CreateRecord {
public data: string;

@IsNotEmpty()
@IsIn([Currency.ETH, Currency.QUORUM, Currency.FABRIC, Currency.BSC, Currency.CELO, Currency.XDC, Currency.ONE])
@IsIn([Currency.ETH, Currency.QUORUM, Currency.FABRIC, Currency.BSC, Currency.CELO, Currency.MATIC, Currency.XDC, Currency.ONE])
public chain: string;

@ValidateIf(o => o.chain === Currency.CELO)
Expand Down

0 comments on commit f0cba02

Please sign in to comment.