[bisq-network/bisq] List UnitedCommunityCoin (UCC) (#2015)

Bernard Labno notifications at github.com
Tue Dec 18 13:15:57 UTC 2018


blabno requested changes on this pull request.

NACK unknown repository

Also reformat the code

> + */
+
+package bisq.asset.coins;
+
+import bisq.asset.AddressValidationResult;
+import bisq.asset.Base58BitcoinAddressValidator;
+import bisq.asset.Coin;
+import bisq.asset.NetworkParametersAdapter;
+
+public class UnitedCommunityCoin extends Coin {
+
+    public UnitedCommunityCoin() {
+        super("UnitedCommunityCoin", "UCC", new UnitedCommunityCoinAddressValidator());
+    }
+
+

Too many newlines

> +    public static class UnitedCommunityCoinAddressValidator extends Base58BitcoinAddressValidator {
+
+        public UnitedCommunityCoinAddressValidator() {
+            super(new UnitedCommunityCoinParams());
+        }
+
+        @Override
+        public AddressValidationResult validate(String address) {
+            if (!address.matches("^[U][a-km-zA-HJ-NP-Z1-9]{33}$"))
+                return AddressValidationResult.invalidStructure();
+
+            return super.validate(address);
+        }
+    }
+
+

Too many newlines.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/2015#pullrequestreview-186060914
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20181218/b9f73b44/attachment.html>


More information about the bisq-github mailing list