[bisq-network/bisq] Add rpc method 'createpaymentacct' (#4308)

Stan notifications at github.com
Mon Jun 22 16:08:42 UTC 2020


@ghubstan commented on this pull request.



> +                    out.println(reply.getFundingAddressesInfo());
+                    return;
+                }
+                case createpaymentacct: {
+                    if (nonOptionArgs.size() < 2)
+                        throw new IllegalArgumentException("no account name specified");
+
+                    var accountName = nonOptionArgs.get(1);
+
+                    if (nonOptionArgs.size() < 3)
+                        throw new IllegalArgumentException("no account number specified");
+
+                    var accountNumber = nonOptionArgs.get(2);
+
+                    if (nonOptionArgs.size() < 4)
+                        throw new IllegalArgumentException("no fiat currency specified");

The original motivation for doing it this way was to keep it as simple as possible because this is/was _a reference implementation only_, to show others how to build their own gRPC CLI.  This isn't the final word on the issue, so let's leave it open.

-- 
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/4308#discussion_r443670459
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200622/012e44c4/attachment-0001.html>


More information about the bisq-github mailing list