Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Commit 644d4ca

Browse files
committed
Changed passPhrase to passphrase
1 parent ba6d3f4 commit 644d4ca

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

src/interfaces/general.interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export type IClientConfig = {
88
storageHost?: string;
99
intercomHost?: string;
1010
notaryHost?: string;
11-
passPhrase: string; /* Required */
11+
passphrase: string; /* Required */
1212
};
1313

1414
// Init

src/services/ablock.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class ABlockWallet {
8181
*/
8282
public async initNew(config: IClientConfig, initOffline = false): Promise<IClientResponse> {
8383
this.keyMgmt = new mgmtClient();
84-
const initIResult = this.keyMgmt.initNew(config.passPhrase);
84+
const initIResult = this.keyMgmt.initNew(config.passphrase);
8585
if (!initOffline) {
8686
const initNetworkIResult = await this.initNetwork(config);
8787
if (initNetworkIResult.status === 'error') {
@@ -120,7 +120,7 @@ export class ABlockWallet {
120120
initOffline = false,
121121
): Promise<IClientResponse> {
122122
this.keyMgmt = new mgmtClient();
123-
const initIResult = this.keyMgmt.fromMasterKey(masterKey, config.passPhrase);
123+
const initIResult = this.keyMgmt.fromMasterKey(masterKey, config.passphrase);
124124
if (!initOffline) {
125125
const initNetworkIResult = await this.initNetwork(config);
126126
if (initNetworkIResult.status === 'error') {
@@ -157,7 +157,7 @@ export class ABlockWallet {
157157
initOffline = false,
158158
): Promise<IClientResponse> {
159159
this.keyMgmt = new mgmtClient();
160-
const initIResult = this.keyMgmt.fromSeed(config.passPhrase, seedPhrase);
160+
const initIResult = this.keyMgmt.fromSeed(config.passphrase, seedPhrase);
161161
if (!initOffline) {
162162
const initNetworkIResult = await this.initNetwork(config);
163163
if (initNetworkIResult.status === 'error') {

src/tests/__tests__/ablock.service.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ test('handles key-pair re-generation from wallet seed phrase', async () => {
2020
'28a7de5c30f8271be690db7a979e1be33d31f6b6aebaa3c82888354ba214c24d',
2121
];
2222

23-
await ablockInstance.fromSeed(
24-
{ mempoolHost: '', intercomHost: '', passPhrase: 'passphrase' },
25-
SEED,
26-
true,
27-
);
23+
await ablockInstance.fromSeed(SEED, { pass }, true,);
2824

2925
const foundAddresses = await ablockInstance.regenAddresses(SEED, utxoAddressList, 6);
3026

0 commit comments

Comments
 (0)