Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoch committed Dec 13, 2024
1 parent 2b309bb commit a67ca80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/issuer-sdk-demo/src/components/create-profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export function CreateProfile({ onSuccess }: { onSuccess: () => void }) {
if (!idOSSDK) throw new Error("No SDK found");
setLoadingMessage("Creating user password...");
const humanId = crypto.randomUUID();
const { encryptionPublicKey } =
await idOSSDK.enclave.provider.discoverUserEncryptionKey(humanId);
const { userEncryptionPublicKey } =
await idOSSDK.enclave.provider.discoverUserEncryptionPublicKey(humanId);

setLoadingMessage("Signing message on your wallet...");

Expand All @@ -31,7 +31,7 @@ export function CreateProfile({ onSuccess }: { onSuccess: () => void }) {

setLoadingMessage("Creating your profile...");

await createProfile(encryptionPublicKey, humanId, {
await createProfile(userEncryptionPublicKey, humanId, {
address: address as string,
signature,
message,
Expand Down

0 comments on commit a67ca80

Please sign in to comment.