[bisq-network/bisq] Add missing filtering on lists (PR #5963)
xyzmaker123
notifications at github.com
Fri Jan 21 16:26:55 CET 2022
@xyzmaker123 commented on this pull request.
> + Set<Tradable> tradables = tradableRepository.getAll();
+
+ TransactionAwareTradable maybeTradable = tradables.stream()
+ .map(tradable -> {
+ if (tradable instanceof OpenOffer) {
+ return new TransactionAwareOpenOffer((OpenOffer) tradable);
+ } else if (tradable instanceof TradeModel) {
+ return new TransactionAwareTrade(
+ (TradeModel) tradable,
+ arbitrationManager,
+ refundManager,
+ btcWalletService,
+ pubKeyRing
+ );
+ } else {
+ return new DummyTransactionAwareTradable(tradable);
[Fixed](https://github.com/bisq-network/bisq/pull/5963/commits/5aae20fa3aa230ad21c7edb31519b6ad11f35da5)
--
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/5963#discussion_r789752480
You are receiving this because you are subscribed to this thread.
Message ID: <bisq-network/bisq/pull/5963/review/859683301 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20220121/e6886f7d/attachment.htm>
More information about the bisq-github
mailing list