Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Commit

Permalink
fix(ark): identify AIP36 transaction types
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Faust committed Aug 18, 2020
1 parent 7c59c1d commit ffb09ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/platform-sdk-ark/src/dto/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ export class TransactionData extends DTO.AbstractTransactionData implements Cont
}

public isEntityRegistration(): boolean {
return false;
return this.data.typeGroup === 2 && this.data.type === 6 && this.data.asset.action === 0;
}

public isEntityResignation(): boolean {
return false;
return this.data.typeGroup === 2 && this.data.type === 6 && this.data.asset.action === 1;
}

public isEntityUpdate(): boolean {
return false;
return this.data.typeGroup === 2 && this.data.type === 6 && this.data.asset.action === 2;
}

public isBusinessEntityRegistration(): boolean {
Expand Down

0 comments on commit ffb09ec

Please sign in to comment.