Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
fix: ci failing
Browse files Browse the repository at this point in the history
  • Loading branch information
luciorubeens committed Feb 19, 2020
1 parent 4b2947c commit a464a66
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/models/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import moment from "moment";
import { MarketCurrency, MarketHistory, MarketTicker } from "@/models/market";

import { TRANSACTION_GROUPS, TRANSACTION_TYPES } from "@/app/app.constants";
import { Interfaces } from "@arkecosystem/crypto";
import { ArkUtility } from "../utils/ark-utility";

const TX_TYPES = {
Expand Down Expand Up @@ -58,16 +59,16 @@ const TX_TYPES_ACTIVITY = {
export type TransactionEntity = TransactionModel & {
isSender: boolean;
isTransfer: boolean;
isMultipayment: boolean;
appropriateAddress: string;
activityLabel: string;
typeLabel: string;
totalAmount: number;
date: Date;
asset: Interfaces.ITransactionAsset;
amountEquivalent: number;
};

export type TransactionAssetKeys = "payments" | "votes" | "delegate";

export interface SendTransactionForm {
amount?: number;
amountEquivalent?: number;
Expand All @@ -82,7 +83,7 @@ export class Transaction extends TransactionModel {
public typeGroup?: number;
public version?: number;
public date: Date;
public asset: Record<TransactionAssetKeys, any>;
public asset: Interfaces.ITransactionAsset;

constructor(public address: string) {
super();
Expand Down Expand Up @@ -114,6 +115,7 @@ export class Transaction extends TransactionModel {

if (this.isMultipayment()) {
for (const payment of this.asset.payments) {
// @ts-ignore
amount = amount.plus(payment.amount);
}
}
Expand Down

0 comments on commit a464a66

Please sign in to comment.