diff --git a/packages/bcp/src/cosmwasmcodec.ts b/packages/bcp/src/cosmwasmcodec.ts index e3745343..2ca6e273 100644 --- a/packages/bcp/src/cosmwasmcodec.ts +++ b/packages/bcp/src/cosmwasmcodec.ts @@ -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) { diff --git a/packages/bcp/src/decode.ts b/packages/bcp/src/decode.ts index 0ae3cffd..2835b0fa 100644 --- a/packages/bcp/src/decode.ts +++ b/packages/bcp/src/decode.ts @@ -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"); }