[bisq-network/bisq] BSQ swaps: Low risk refactorings [2] (PR #5770)
chimp1984
notifications at github.com
Tue Nov 2 15:48:46 CET 2021
@chimp1984 commented on this pull request.
> @@ -235,7 +235,7 @@ public void initialize() {
MenuItem editItem = new MenuItem(Res.get("portfolio.context.offerLikeThis"));
editItem.setOnAction((event) -> {
try {
- OfferPayload offerPayload = row.getItem().getTrade().getOffer().getOfferPayload();
+ OfferPayload offerPayload = row.getItem().getTrade().getOffer().getOfferPayload().orElseThrow();
if (offerPayload.getPubKeyRing().equals(keyRing.getPubKeyRing())) {
It is the normal Bisq offer (not BSQ swap) the Optional is expected to be present as that class is not used by BSQ swap
--
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/5770#discussion_r741141685
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20211102/e5661d1e/attachment.htm>
More information about the bisq-github
mailing list