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) { public static String getShortId(String id) {
return getShortId(id, "_"); return getShortId(id, "-");
} }
public static String getShortId(String id, String sep) { public static String getShortId(String id, String sep) {

View File

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