add proper types

This commit is contained in:
Ilja 2022-03-01 15:35:50 +02:00
parent 643b38a3a8
commit 5bf6c7bc8c
2 changed files with 2 additions and 3 deletions

View File

@ -23,7 +23,6 @@
"valtio": "1.3.1",
"react-code-blocks": "0.0.9-0",
"@cosmjs/proto-signing": "0.27.1",
"@cosmjs/crypto": "0.27.1",
"@cosmjs/encoding": "0.27.1",
"@cosmjs/amino": "0.27.1"
},

View File

@ -1,4 +1,4 @@
import { Secp256k1Wallet } from '@cosmjs/amino'
import { Secp256k1Wallet, StdSignDoc } from '@cosmjs/amino'
import { fromHex } from '@cosmjs/encoding'
import { DirectSecp256k1Wallet, makeSignBytes } from '@cosmjs/proto-signing'
// @ts-expect-error
@ -64,7 +64,7 @@ export class Cosmos {
return await this.directSigner.signDirect(address, signDocBytes)
}
public async signAmino(address: string, signDoc: SignDoc) {
public async signAmino(address: string, signDoc: StdSignDoc) {
return await this.aminoSigner.signAmino(address, signDoc)
}
}