From 607f359a8c4336e08258697d9bff11490617119e Mon Sep 17 00:00:00 2001 From: Alexandre Alouit Date: Fri, 11 Mar 2022 10:57:04 +0100 Subject: [PATCH] Update js-synchronisation.ts --- src/families/cosmos/js-synchronisation.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/families/cosmos/js-synchronisation.ts b/src/families/cosmos/js-synchronisation.ts index 55701589ce..2603895f74 100644 --- a/src/families/cosmos/js-synchronisation.ts +++ b/src/families/cosmos/js-synchronisation.ts @@ -1,4 +1,4 @@ -import { Account, Operation } from "../../types"; +import { Account, Operation, OperationType } from "../../types"; import { BigNumber } from "bignumber.js"; import { makeSync, GetAccountShape, mergeOps } from "../../bridge/jsHelpers"; import { encodeAccountId } from "../../account"; @@ -20,13 +20,13 @@ const txToOps = (info: any, id: string, txs: any): Operation[] => { const op: Operation = { id: "", hash: tx.txhash, - type: "" as any, + type: "" as OperationType, value: new BigNumber(0), fee: fees, blockHash: null, blockHeight: tx.height, - senders: [] as any, - recipients: [] as any, + senders: [] as string[], + recipients: [] as string[], accountId: id, date: new Date(tx.timestamp), extra: {