Skip to content

Commit 5587cb3

Browse files
authored
Merge branch 'master' into catbuffer-library
2 parents aa66743 + b5ce1df commit 5587cb3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/model/model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ export * from './transaction/MosaicAddressRestrictionTransaction';
158158

159159
// Wallet
160160
export * from './wallet/EncryptedPrivateKey';
161+
export * from './wallet/ISimpleWalletDTO';
161162
export * from './wallet/Password';
162163
export * from './wallet/SimpleWallet';
163164
export * from './wallet/Wallet';

src/model/wallet/SimpleWallet.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
import {LocalDateTime} from 'js-joda';
1818
import {Crypto, KeyPair, SHA3Hasher} from '../../core/crypto';
1919
import {Convert as convert} from '../../core/format';
20-
import {ISimpleWalletDTO} from '../../infrastructure/wallet/simpleWalletDTO';
2120
import {Account} from '../account/Account';
2221
import {Address} from '../account/Address';
2322
import {NetworkType} from '../blockchain/NetworkType';
2423
import {EncryptedPrivateKey} from './EncryptedPrivateKey';
24+
import {ISimpleWalletDTO} from './ISimpleWalletDTO';
2525
import {Password} from './Password';
2626
import {Wallet} from './Wallet';
2727

@@ -109,8 +109,9 @@ export class SimpleWallet extends Wallet {
109109
/**
110110
* Instantiate a SimpleWallet from a DTO
111111
* @param simpleWalletDTO simple wallet without prototype
112+
* @returns {SimpleWallet}
112113
*/
113-
static createFromDTO(simpleWalletDTO: ISimpleWalletDTO) {
114+
static createFromDTO(simpleWalletDTO: ISimpleWalletDTO): SimpleWallet {
114115
return new SimpleWallet(
115116
simpleWalletDTO.name,
116117
simpleWalletDTO.network,

0 commit comments

Comments
 (0)