Linter cleanup

This commit is contained in:
Ethan Frey 2020-02-03 20:06:15 +01:00
parent 7e7f18a1b3
commit 3da5865614
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,5 @@
/* eslint-disable @typescript-eslint/camelcase */
import { marshalTx, unmarshalTx } from "@cosmwasm/sdk";
import {
Address,
ChainId,
@ -13,9 +14,7 @@ import {
TxCodec,
UnsignedTransaction,
} from "@iov/bcp";
import { Sha256 } from "@iov/crypto";
import { Encoding } from "@iov/encoding";
import { unmarshalTx, marshalTx } from "@cosmwasm/sdk";
import { CosmosBech32Prefix, isValidAddress, pubkeyToAddress } from "./address";
import { Caip5 } from "./caip5";
@ -23,7 +22,7 @@ import { parseTx } from "./decode";
import { buildSignedTx, buildUnsignedTx } from "./encode";
import { nonceToAccountNumber, nonceToSequence, TokenInfos } from "./types";
const { toHex, toUtf8 } = Encoding;
const { toUtf8 } = Encoding;
function sortJson(json: any): any {
if (typeof json !== "object" || json === null) {

View File

@ -102,7 +102,12 @@ export function parseFee(fee: types.StdFee, tokens: TokenInfos): Fee {
};
}
export function parseTx(txValue: types.StdTx, chainId: ChainId, nonce: Nonce, tokens: TokenInfos): SignedTransaction {
export function parseTx(
txValue: types.StdTx,
chainId: ChainId,
nonce: Nonce,
tokens: TokenInfos,
): SignedTransaction {
if (!types.isAminoStdTx(txValue)) {
throw new Error("Only Amino StdTx is supported");
}