Compare commits

...

1 Commits

Author SHA1 Message Date
IshaVenikar
cd6a3616d8 Add snackbar to direct user to the wallet 2024-08-08 18:47:55 +05:30
2 changed files with 6 additions and 1 deletions

View File

@ -99,6 +99,8 @@ const SignWithCosmos = () => {
try {
setIsLoading(true);
enqueueSnackbar("View and sign the message from your Laconic Wallet", { variant: "info" });
const params = { transactionMessage, signer: cosmosAddress };
const responseFromWallet = await signClient!.request<{
code: number;

View File

@ -45,7 +45,10 @@ const SignWithNitroKey = () => {
const signEth = async () => {
if (session && signClient) {
try {
setIsLoading(true)
setIsLoading(true);
enqueueSnackbar("View and sign the message from your Laconic Wallet", { variant: "info" });
const jsonMessage = canonicalStringify(message);
const hexMsg = utf8ToHex(jsonMessage, true);
const receivedEthSig: string = await signClient!.request({