File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
* 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'
5
5
import {
6
6
IronfishKeys ,
7
7
KeyResponse ,
@@ -166,12 +166,12 @@ export class LedgerMultiSigner extends Ledger {
166
166
await this . tryInstruction ( ( app ) => app . dkgRestoreKeys ( encryptedKeys ) )
167
167
}
168
168
169
- importAccount = async ( ) => {
169
+ importAccount = async ( ) : Promise < AccountImport > => {
170
170
const identity = await this . dkgGetIdentity ( 0 )
171
171
const dkgKeys = await this . dkgRetrieveKeys ( )
172
172
const publicKeyPackage = await this . dkgGetPublicPackage ( )
173
173
174
- const accountImport = {
174
+ const accountImport : AccountImport = {
175
175
...dkgKeys ,
176
176
name : 'ledger-multisig' ,
177
177
multisigKeys : {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export class LedgerSingleSigner extends Ledger {
22
22
return response . publicAddress . toString ( 'hex' )
23
23
}
24
24
25
- importAccount = async ( ) => {
25
+ importAccount = async ( ) : Promise < AccountImport > => {
26
26
const publicAddress = await this . getPublicAddress ( )
27
27
28
28
const responseViewKey : KeyResponse = await this . tryInstruction ( ( app ) =>
You can’t perform that action at this time.
0 commit comments