add proper types
This commit is contained in:
parent
643b38a3a8
commit
5bf6c7bc8c
@ -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"
|
||||
},
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user