Skip to content

Commit

Permalink
update (#224)
Browse files Browse the repository at this point in the history
Co-authored-by: jay_sun <[email protected]>
  • Loading branch information
JeyDev310 and jay_sun authored Nov 15, 2021
1 parent 41e4cd0 commit 3e70a9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/model/request/BurnErc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ export class BurnErc20 extends PrivateKeyOrSignatureId {
@ValidateNested()
public fee?: Fee;

@ValidateIf(o => o.chain === Currency.ALGO && o.signatureId)
@IsNotEmpty()
@IsOptional()
@Length(42, 58)
public from?: string;
}
6 changes: 2 additions & 4 deletions src/model/request/DeployErc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,10 @@ export class DeployErc20 extends PrivateKeyOrSignatureId {
@Type(() => Fee)
public fee?: Fee;

@ValidateIf(o => o.chain === Currency.ALGO)
@IsNotEmpty()
@IsOptional()
public url?: string;

@ValidateIf(o => o.chain === Currency.ALGO && o.signatureId)
@IsNotEmpty()
@IsOptional()
@Length(42, 58)
public from?: string;
}
3 changes: 1 addition & 2 deletions src/model/request/TransferErc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ export class TransferErc20 extends PrivateKeyOrSignatureId {
@IsOptional()
public nonce?: number;

@ValidateIf(o => o.chain === Currency.ALGO && o.signatureId)
@IsNotEmpty()
@IsOptional()
@Length(42, 58)
public from?: string;
}

0 comments on commit 3e70a9f

Please sign in to comment.