[bisq-network/bisq] List Noir(NOR) (#2175)

Bernard Labno notifications at github.com
Mon Jan 7 13:54:13 UTC 2019


blabno requested changes on this pull request.

NACK squash commits into a single one.

> + * License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with Bisq. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+package bisq.asset.coins;
+
+import bisq.asset.Coin;
+import bisq.asset.RegexAddressValidator;
+ 
+public class Noir extends Coin {
+     public Noir() {
+        super("Noir", "NOR", new RegexAddressValidator("^[Z][_A-z0-9]*([_A-z0-9])*$"));
+    }
+}

Missing newline

> +    }
+
+    @Test
+    public void testValidAddresses() {
+        assertValidAddress("ZMZ6M64FiFjPjmzXRf7xBuyarorUmT8uyG");
+        assertValidAddress("ZHoMM3vccwGrAQocmmp9ZHA7Gjg9Uqkok7");
+    }
+
+    @Test
+    public void testInvalidAddresses() {
+        assertInvalidAddress("");
+        assertInvalidAddress("21HQQgsvLTgN9xD9hNmAgAreakzVzQUSLSHa");
+        assertInvalidAddress("ZHoMM3vccwGrAQocmmp9ZHA7Gjg9Uqkok7*");
+        assertInvalidAddress("ZHoMM3vccwGrAQocmmp9ZHA7Gjg9Uqkok7#jHt5jtP");
+    }
+}

Missing newline

-- 
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/2175#pullrequestreview-189815266
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20190107/4ee2d4b3/attachment-0001.html>


More information about the bisq-github mailing list