Skip to content

Commit

Permalink
Merge pull request #4714 from ghubstan/13-canceloffer-impl
Browse files Browse the repository at this point in the history
Implement 'canceloffer' api method
  • Loading branch information
sqrrm authored Nov 2, 2020
2 parents 9e14664 + b38507c commit 85237cb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/src/main/java/bisq/core/api/CoreOffersService.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,13 @@ Offer editOffer(String offerId,
}

void cancelOffer(String id) {
log.info("TODO");
Offer offer = getOffer(id);
openOfferManager.removeOffer(offer,
() -> {
},
errorMessage -> {
throw new IllegalStateException(errorMessage);
});
}

private void placeOffer(Offer offer,
Expand Down

0 comments on commit 85237cb

Please sign in to comment.