Add snackbar to direct user to the wallet
This commit is contained in:
parent
74542a56a5
commit
cd6a3616d8
@ -99,6 +99,8 @@ const SignWithCosmos = () => {
|
|||||||
try {
|
try {
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
|
|
||||||
|
enqueueSnackbar("View and sign the message from your Laconic Wallet", { variant: "info" });
|
||||||
|
|
||||||
const params = { transactionMessage, signer: cosmosAddress };
|
const params = { transactionMessage, signer: cosmosAddress };
|
||||||
const responseFromWallet = await signClient!.request<{
|
const responseFromWallet = await signClient!.request<{
|
||||||
code: number;
|
code: number;
|
||||||
|
@ -45,7 +45,10 @@ const SignWithNitroKey = () => {
|
|||||||
const signEth = async () => {
|
const signEth = async () => {
|
||||||
if (session && signClient) {
|
if (session && signClient) {
|
||||||
try {
|
try {
|
||||||
setIsLoading(true)
|
setIsLoading(true);
|
||||||
|
|
||||||
|
enqueueSnackbar("View and sign the message from your Laconic Wallet", { variant: "info" });
|
||||||
|
|
||||||
const jsonMessage = canonicalStringify(message);
|
const jsonMessage = canonicalStringify(message);
|
||||||
const hexMsg = utf8ToHex(jsonMessage, true);
|
const hexMsg = utf8ToHex(jsonMessage, true);
|
||||||
const receivedEthSig: string = await signClient!.request({
|
const receivedEthSig: string = await signClient!.request({
|
||||||
|
Loading…
Reference in New Issue
Block a user