Skip to content

Commit 9aea07d

Browse files
authored
Add specific types to ledger functions (#5708)
1 parent 42099f8 commit 9aea07d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ironfish-cli/src/ledger/ledgerMultiSigner.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* This Source Code Form is subject to the terms of the Mozilla Public
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4-
import { ACCOUNT_SCHEMA_VERSION, UnsignedTransaction } from '@ironfish/sdk'
4+
import { ACCOUNT_SCHEMA_VERSION, AccountImport, UnsignedTransaction } from '@ironfish/sdk'
55
import {
66
IronfishKeys,
77
KeyResponse,
@@ -166,12 +166,12 @@ export class LedgerMultiSigner extends Ledger {
166166
await this.tryInstruction((app) => app.dkgRestoreKeys(encryptedKeys))
167167
}
168168

169-
importAccount = async () => {
169+
importAccount = async (): Promise<AccountImport> => {
170170
const identity = await this.dkgGetIdentity(0)
171171
const dkgKeys = await this.dkgRetrieveKeys()
172172
const publicKeyPackage = await this.dkgGetPublicPackage()
173173

174-
const accountImport = {
174+
const accountImport: AccountImport = {
175175
...dkgKeys,
176176
name: 'ledger-multisig',
177177
multisigKeys: {

ironfish-cli/src/ledger/ledgerSingleSigner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class LedgerSingleSigner extends Ledger {
2222
return response.publicAddress.toString('hex')
2323
}
2424

25-
importAccount = async () => {
25+
importAccount = async (): Promise<AccountImport> => {
2626
const publicAddress = await this.getPublicAddress()
2727

2828
const responseViewKey: KeyResponse = await this.tryInstruction((app) =>

0 commit comments

Comments
 (0)