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

Commit

Permalink
Update js-synchronisation.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
alexalouit committed Mar 11, 2022
1 parent 8bda82c commit 607f359
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/families/cosmos/js-synchronisation.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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: {
Expand Down

0 comments on commit 607f359

Please sign in to comment.