File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ export * from './transaction/MosaicAddressRestrictionTransaction';
158158
159159// Wallet
160160export * from './wallet/EncryptedPrivateKey' ;
161+ export * from './wallet/ISimpleWalletDTO' ;
161162export * from './wallet/Password' ;
162163export * from './wallet/SimpleWallet' ;
163164export * from './wallet/Wallet' ;
File renamed without changes.
Original file line number Diff line number Diff line change 1717import { LocalDateTime } from 'js-joda' ;
1818import { Crypto , KeyPair , SHA3Hasher } from '../../core/crypto' ;
1919import { Convert as convert } from '../../core/format' ;
20- import { ISimpleWalletDTO } from '../../infrastructure/wallet/simpleWalletDTO' ;
2120import { Account } from '../account/Account' ;
2221import { Address } from '../account/Address' ;
2322import { NetworkType } from '../blockchain/NetworkType' ;
2423import { EncryptedPrivateKey } from './EncryptedPrivateKey' ;
24+ import { ISimpleWalletDTO } from './ISimpleWalletDTO' ;
2525import { Password } from './Password' ;
2626import { 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 ,
You can’t perform that action at this time.
0 commit comments