Fix Typos in Octocoin validation

This commit is contained in:
MyFirst 2017-03-30 15:29:33 -04:00
parent 23c4768d29
commit f9c4bb730c

View File

@ -22,7 +22,7 @@ import io.bitsquare.gui.util.validation.altcoins.ByteballAddressValidator;
import io.bitsquare.gui.util.validation.altcoins.OctocoinAddressValidator;
import io.bitsquare.gui.util.validation.params.IOPParams;
import io.bitsquare.gui.util.validation.params.PivxParams;
import io.bitsquare.gui.util.validation.params.OctcoinParams;
import io.bitsquare.gui.util.validation.params.OctocoinParams;
import org.bitcoinj.core.Address;
import org.bitcoinj.core.AddressFormatException;
import org.bitcoinj.params.MainNetParams;
@ -112,7 +112,7 @@ public final class AltCoinAddressValidator extends InputValidator {
}
case "888":
if (input.matches("^[8][a-km-zA-HJ-NP-Z1-9]{25,34}$")) {
if (return OctocoinAddressValidator.ValidateAddress(input);) {
if (OctocoinAddressValidator.ValidateAddress(input)) {
try {
new Address(OctocoinParams.get(), input);
return new ValidationResult(true);