From 26b39fe6f2ffec711e33566c241686b1bce6bb92 Mon Sep 17 00:00:00 2001 From: Albert Andrejev Date: Tue, 12 Sep 2023 13:42:33 +0300 Subject: [PATCH] fix types --- src/helpers/cosmos.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/helpers/cosmos.ts b/src/helpers/cosmos.ts index d71ec53..7acf3ef 100644 --- a/src/helpers/cosmos.ts +++ b/src/helpers/cosmos.ts @@ -174,7 +174,7 @@ export class CosmosWrapper { } } - async getSeq(address: cosmosclient.AccAddress): Promise { + async getSeq(address: cosmosclient.AccAddress): Promise { const account = await rest.auth .account(this.sdk, address) .then((res) => @@ -442,7 +442,7 @@ export class WalletWrapper { msgs: T[], numAttempts = 10, mode: rest.tx.BroadcastTxMode = rest.tx.BroadcastTxMode.Async, - sequence: Long.Long = this.wallet.account.sequence, + sequence = this.wallet.account.sequence, ): Promise { const protoMsgs: Array = []; msgs.forEach((msg) => { @@ -630,7 +630,7 @@ export class WalletWrapper { gas_limit: Long.fromString('200000'), amount: [{ denom: this.chain.denom, amount: '1000' }], }, - sequence: Long.Long = this.wallet.account.sequence, + sequence = this.wallet.account.sequence, mode: rest.tx.BroadcastTxMode = rest.tx.BroadcastTxMode.Async, ): Promise { const { amount, denom = this.chain.denom } = @@ -652,7 +652,7 @@ export class WalletWrapper { gas_limit: Long.fromString('200000'), amount: [{ denom: this.chain.denom, amount: '1000' }], }, - sequence: Long.Long = this.wallet.account.sequence, + sequence = this.wallet.account.sequence, mode: rest.tx.BroadcastTxMode = rest.tx.BroadcastTxMode.Async, ): Promise { const msg = new adminmodule.MsgSubmitProposal({