Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
devsisingh committed Jan 27, 2024
1 parent 83ed3ee commit 61d9419
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 8 deletions.
9 changes: 8 additions & 1 deletion components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,16 @@ const Navbar = ({ isHome }) => {
});
console.log("sign", signature, "full message", fullMessage);

let signaturewallet = signature;

if(signaturewallet.length === 128)
{
signaturewallet = `0x${signaturewallet}`;
}

const authenticationData = {
flowId: nonce,
signature: `0x${signature}`,
signature: `${signature}`,
pubKey: publicKey,
};

Expand Down
9 changes: 8 additions & 1 deletion components/connectwallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,16 @@ const connectWallet = async () => {
});
console.log("sign", signature, "full message", fullMessage);

let signaturewallet = signature;

if(signaturewallet.length === 128)
{
signaturewallet = `0x${signaturewallet}`;
}

const authenticationData = {
flowId: nonce,
signature: `0x${signature}`,
signature: `${signature}`,
pubKey: publicKey,
};

Expand Down
9 changes: 8 additions & 1 deletion pages/mint.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,16 @@ const Mint = () => {
});
console.log("sign", signature, "full message", fullMessage);

let signaturewallet = signature;

if(signaturewallet.length === 128)
{
signaturewallet = `0x${signaturewallet}`;
}

const authenticationData = {
flowId: nonce,
signature: `0x${signature}`,
signature: `${signature}`,
pubKey: publicKey,
};

Expand Down
17 changes: 12 additions & 5 deletions pages/subscription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -447,11 +447,18 @@ const Subscription = () => {
});
console.log("sign", signature, "full message", fullMessage);

const authenticationData = {
flowId: nonce,
signature: `0x${signature}`,
pubKey: publicKey,
};
let signaturewallet = signature;

if(signaturewallet.length === 128)
{
signaturewallet = `0x${signaturewallet}`;
}

const authenticationData = {
flowId: nonce,
signature: `${signature}`,
pubKey: publicKey,
};

const authenticateApiUrl = `${REACT_APP_GATEWAY_URL}api/v1.0/authenticate`;

Expand Down

0 comments on commit 61d9419

Please sign in to comment.