Skip to content

Commit

Permalink
Make codacy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarguindzberg committed Sep 17, 2020
1 parent 8a66c5e commit 90681bf
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion assets/src/main/java/bisq/asset/coins/Bitcoin.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

package bisq.asset.coins;

import bisq.asset.Base58AddressValidator;
import bisq.asset.BitcoinAddressValidator;
import bisq.asset.Coin;

Expand Down
1 change: 0 additions & 1 deletion core/src/main/java/bisq/core/btc/wallet/WalletService.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import org.bitcoinj.core.Context;
import org.bitcoinj.core.ECKey;
import org.bitcoinj.core.InsufficientMoneyException;
import org.bitcoinj.core.LegacyAddress;
import org.bitcoinj.core.NetworkParameters;
import org.bitcoinj.core.listeners.TransactionConfidenceEventListener;
import org.bitcoinj.script.ScriptException;
Expand Down
5 changes: 3 additions & 2 deletions core/src/main/java/bisq/core/util/coin/BsqFormatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,12 @@ public String getBsqAddressStringFromAddress(Address address) {
}

public LegacyAddress getAddressFromBsqAddress(String encoded) {
String maybeUpdatedEncoded = encoded;
if (useBsqAddressFormat)
encoded = encoded.substring(prefix.length(), encoded.length());
maybeUpdatedEncoded = encoded.substring(prefix.length(), encoded.length());

try {
return LegacyAddress.fromBase58(Config.baseCurrencyNetworkParameters(), encoded);
return LegacyAddress.fromBase58(Config.baseCurrencyNetworkParameters(), maybeUpdatedEncoded);
} catch (AddressFormatException e) {
throw new RuntimeException(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

import org.bitcoinj.core.Address;
import org.bitcoinj.core.AddressFormatException;
import org.bitcoinj.core.LegacyAddress;

import javax.inject.Inject;

Expand Down
1 change: 0 additions & 1 deletion desktop/src/main/java/bisq/desktop/util/GUIUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@

import org.bitcoinj.core.Address;
import org.bitcoinj.core.Coin;
import org.bitcoinj.core.LegacyAddress;
import org.bitcoinj.core.TransactionConfidence;
import org.bitcoinj.uri.BitcoinURI;
import org.bitcoinj.utils.Fiat;
Expand Down

0 comments on commit 90681bf

Please sign in to comment.