From a464a66b1daccfbd49305d4d21bb7d151c0613ca Mon Sep 17 00:00:00 2001 From: Lucio Rubens <4539235+luciorubeens@users.noreply.github.com> Date: Tue, 18 Feb 2020 14:30:48 -0300 Subject: [PATCH] fix: ci failing --- src/app/models/transaction.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/models/transaction.ts b/src/app/models/transaction.ts index d869bdd32..c420bd173 100644 --- a/src/app/models/transaction.ts +++ b/src/app/models/transaction.ts @@ -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 = { @@ -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; @@ -82,7 +83,7 @@ export class Transaction extends TransactionModel { public typeGroup?: number; public version?: number; public date: Date; - public asset: Record; + public asset: Interfaces.ITransactionAsset; constructor(public address: string) { super(); @@ -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); } }