From c5ad2a12e0a44c1f7202d67044233264e546d427 Mon Sep 17 00:00:00 2001 From: Ronak Thacker Date: Mon, 12 Jun 2023 12:30:52 +0530 Subject: [PATCH] feat: updated create wallet api --- .../tractusx/managedidentitywallets/service/WalletService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/WalletService.java b/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/WalletService.java index 0b55c00bd..3bb927460 100644 --- a/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/WalletService.java +++ b/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/WalletService.java @@ -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; @@ -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