From d6e67c9bd5f042e9029becfd99746a9f12ae6f87 Mon Sep 17 00:00:00 2001 From: hemanthghs Date: Tue, 14 Nov 2023 21:57:23 +0530 Subject: [PATCH] chore --- frontend/src/features/multisig/multisigSlice.js | 6 +++--- frontend/src/pages/multisig/VerifyAccount.jsx | 4 ++-- frontend/src/txns/multisig/verify.ts | 13 ------------- 3 files changed, 5 insertions(+), 18 deletions(-) delete mode 100644 frontend/src/txns/multisig/verify.ts diff --git a/frontend/src/features/multisig/multisigSlice.js b/frontend/src/features/multisig/multisigSlice.js index b7e2f8744..548a7c0d7 100644 --- a/frontend/src/features/multisig/multisigSlice.js +++ b/frontend/src/features/multisig/multisigSlice.js @@ -1,10 +1,11 @@ import { createAsyncThunk, createSlice } from "@reduxjs/toolkit"; import multisigService from "./multisigService"; import bankService from "../bank/service"; -import { SignMsg } from "../../txns/multisig/verify"; import { setError } from "../common/commonSlice"; export const SOMETHING_WRONG = "Something went wrong"; +const VERIFICATION_MESSAGE = + "Resolute offchain verification.\n\nSign an offchain verification message to\nprove your ownership to access the multisig page."; const initialState = { createMultisigAccountRes: { @@ -221,9 +222,8 @@ export const verifyAccount = createAsyncThunk( const token = await window.wallet.signArbitrary( data.chainID, data.address, - JSON.stringify(SignMsg(data.address)) + VERIFICATION_MESSAGE ); - const salt = new Date().getTime(); try { const response = await multisigService.verifyUser({ address: data.address, diff --git a/frontend/src/pages/multisig/VerifyAccount.jsx b/frontend/src/pages/multisig/VerifyAccount.jsx index 28f3202f3..1479b2b94 100644 --- a/frontend/src/pages/multisig/VerifyAccount.jsx +++ b/frontend/src/pages/multisig/VerifyAccount.jsx @@ -1,4 +1,4 @@ -import { Box, Button, Paper, Typography } from "@mui/material"; +import { Box, Button, Typography } from "@mui/material"; import React from "react"; import { useDispatch } from "react-redux"; import { verifyAccount } from "../../features/multisig/multisigSlice"; @@ -15,7 +15,7 @@ const VerifyAccount = ({ chainID, walletAddress }) => { }; return ( - Please verify your account ownership + Please verify your account ownership to proceed.