Use dash instead of underscore for offer id

This commit is contained in:
Manfred Karrer 2017-02-07 20:24:44 -05:00
parent 4cafddabc7
commit ea4fc12092
2 changed files with 3 additions and 3 deletions

View File

@ -452,7 +452,7 @@ public class Utilities {
}
public static String getShortId(String id) {
return getShortId(id, "_");
return getShortId(id, "-");
}
public static String getShortId(String id, String sep) {

View File

@ -139,8 +139,8 @@ class CreateOfferDataModel extends ActivatableDataModel {
this.blockchainService = blockchainService;
this.formatter = formatter;
offerId = Utilities.getRandomPrefix(6, 12) + "_" +
UUID.randomUUID().toString() + "_" +
offerId = Utilities.getRandomPrefix(6, 12) + "-" +
UUID.randomUUID().toString() + "-" +
Version.VERSION.replace(".", "");
shortOfferId = Utilities.getShortId(offerId);
addressEntry = walletService.getOrCreateAddressEntry(offerId, AddressEntry.Context.OFFER_FUNDING);