Skip to content

Commit

Permalink
Merge pull request #2125 from matiu/lint/server
Browse files Browse the repository at this point in the history
fix lint
  • Loading branch information
matiu committed Apr 12, 2019
2 parents 3b99ab7 + 9e9e0c9 commit cc347ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/bitcore-wallet-service/src/lib/common/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,5 @@ module.exports = {

BE_KEY_SALT: 'bws-auth-keysalt',

BROADCAST_RETRY_TIME: 350, //ms
BROADCAST_RETRY_TIME: 350, // ms
};
9 changes: 4 additions & 5 deletions packages/bitcore-wallet-service/src/lib/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export interface IWalletService {
copayerId: string;
appName: string;
appVersion: string;
parsedClientVersion: { agent: number; major: number; minor: number };
parsedClientVersion: { agent: number; major: number; minor: number; };
clientVersion: string;
copayerIsSupportStaff: boolean;
}
Expand Down Expand Up @@ -487,8 +487,8 @@ export class WalletService {
return cb(new ClientError('Invalid network'));
}

const derivationStrategy = Constants.DERIVATION_STRATEGIES.BIP44
const addressType = opts.n === 1
const derivationStrategy = Constants.DERIVATION_STRATEGIES.BIP44;
const addressType = opts.n === 1
? Constants.SCRIPT_TYPES.P2PKH
: Constants.SCRIPT_TYPES.P2SH;

Expand Down Expand Up @@ -1077,7 +1077,6 @@ export class WalletService {
);
}


const hash = WalletService._getCopayerHash(
opts.name,
opts.xPubKey,
Expand Down Expand Up @@ -4384,7 +4383,7 @@ export class WalletService {
addresses.push(addr);
i++;
}
//this.logi(i + ' addresses were added.');
// this.logi(i + ' addresses were added.');
}

this._store(wallet, addresses, next);
Expand Down

0 comments on commit cc347ec

Please sign in to comment.