[bisq-network/bisq] Add BTC address param, use String for param value instead of long (#1841)
Manfred Karrer
notifications at github.com
Wed Oct 31 00:03:55 UTC 2018
ManfredKarrer commented on this pull request.
> + validateCoinInput(input, btcCoinFormat);
+ }
+
+ public void validateBsqInput(String input) throws ValidationException {
+ validateCoinInput(input, this.coinFormat);
+ }
+
+ private void validateCoinInput(String input, MonetaryFormat coinFormat) throws ValidationException {
+ try {
+ coinFormat.parse(cleanDoubleInput(input));
+ } catch (Throwable t) {
+ throw new ValidationException("Invalid format for a " + coinFormat.code() + " value");
+ }
+ }
+
+ public String formatParamValue(Param param, String value) {
ah yes, good idea...
--
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/1841#discussion_r229528278
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20181030/49c5da89/attachment.html>
More information about the bisq-github
mailing list