Skip to content

Commit

Permalink
feat: updated create wallet api
Browse files Browse the repository at this point in the history
  • Loading branch information
thackerronak committed Jun 12, 2023
1 parent f1e5289 commit c5ad2a1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
import java.io.StringWriter;
import java.net.URLDecoder;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -237,7 +238,7 @@ private Wallet createWallet(CreateWalletRequest request, boolean authority) {
didDocumentBuilder.id(did.toUri());
didDocumentBuilder.verificationMethods(verificationMethods);
DidDocument didDocument = didDocumentBuilder.build();

didDocument = DidDocument.fromJson(URLDecoder.decode(didDocument.toJson(), StandardCharsets.UTF_8));
log.debug("did document created for bpn ->{}", request.getBpn());

//Save wallet
Expand Down

0 comments on commit c5ad2a1

Please sign in to comment.