Skip to content

Commit

Permalink
Fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgustavo committed Dec 14, 2018
1 parent 0aeb2ca commit f5f42cf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/providers/address/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ export class AddressProvider {
origCoin,
origAddress: address,
resultCoin,
resultAddress: resultCoin == 'bch' ? resultAddress.toLegacyAddress() : resultAddress.toString()
resultAddress:
resultCoin == 'bch'
? resultAddress.toLegacyAddress()
: resultAddress.toString()
};
}

Expand Down Expand Up @@ -151,7 +154,6 @@ export class AddressProvider {
if (isUriValid) {
uri = new URICash(address);
isAddressValidLivenet = AddressCash.isValid(

// this should work with Copay legacy or CashAddr formats.
uri.address.toString(),
'livenet'
Expand Down
4 changes: 1 addition & 3 deletions src/providers/incoming-data/incoming-data.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,7 @@ describe('Provider: Incoming Data Provider', () => {
);

// bch testnet legacy, prefixed address are handled as normal addresses
expect(loggerSpy).toHaveBeenCalledWith(
'Incoming-data: Bitcoin Cash URI'
);
expect(loggerSpy).toHaveBeenCalledWith('Incoming-data: Bitcoin Cash URI');

let parsed = bwcProvider
.getBitcore()
Expand Down
4 changes: 3 additions & 1 deletion src/providers/tx-format/tx-format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export class TxFormatProvider {
}

public toLegacyAddress(address: string): string {
let legacyAddr: string = this.bitcoreCash.Address(address).toLegacyAddress();
let legacyAddr: string = this.bitcoreCash
.Address(address)
.toLegacyAddress();
return legacyAddr;
}

Expand Down

0 comments on commit f5f42cf

Please sign in to comment.