Skip to content

Commit

Permalink
Implement api method 'canceloffer'
Browse files Browse the repository at this point in the history
  • Loading branch information
ghubstan committed Oct 27, 2020
1 parent 0f1d4f8 commit b38507c
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 b38507c

Please sign in to comment.