Skip to content

Commit

Permalink
fix: remove unuse import
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhnv2303 committed Oct 14, 2022
1 parent 7d603fc commit fa8da0f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/lib/wallet/index.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
import {
SigningCosmWasmClient,
SigningCosmWasmClientOptions,
SigningCosmWasmClientOptions
} from '@cosmjs/cosmwasm-stargate';
import {
DirectSecp256k1HdWallet,
makeCosmoshubPath,
OfflineSigner,
OfflineSigner
} from '@cosmjs/proto-signing';
import { AccountData } from '@cosmjs/proto-signing/build/signer';
import {
SigningStargateClient,
SigningStargateClientOptions,
SigningStargateClientOptions
} from '@cosmjs/stargate';
import { Tendermint34Client } from '@cosmjs/tendermint-rpc';
import { HttpEndpoint } from '@cosmjs/tendermint-rpc/build/rpcclients';

import { provider } from '../providers';

import { TendermintBatchClient } from '../tendermint-rpc/tendermintbatchclient';

export default OfflineSigner;

Expand All @@ -39,7 +37,7 @@ export class Wallet {
): Promise<Wallet> {
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, {
hdPaths: [makeCosmoshubPath(0)],
prefix: prefix,
prefix: prefix
});
const cosmWasmClient = await SigningCosmWasmClient.connectWithSigner(
provider.rpcUrl,
Expand Down Expand Up @@ -69,7 +67,7 @@ export class Wallet {
for (let i = 0; i < amount; i++) {
const wallet = await DirectSecp256k1HdWallet.fromMnemonic(mnemonic, {
hdPaths: [makeCosmoshubPath(i)],
prefix: prefix,
prefix: prefix
});
const cosmWasmClient = await SigningCosmWasmClient.connectWithSigner(
provider.rpcUrl,
Expand Down

0 comments on commit fa8da0f

Please sign in to comment.