Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
Hemanthghs committed Nov 14, 2023
1 parent a36c2e5 commit d6e67c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
6 changes: 3 additions & 3 deletions frontend/src/features/multisig/multisigSlice.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/multisig/VerifyAccount.jsx
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -15,7 +15,7 @@ const VerifyAccount = ({ chainID, walletAddress }) => {
};
return (
<Box sx={{ p: 4, my: 2 }}>
<Typography>Please verify your account ownership</Typography>
<Typography>Please verify your account ownership to proceed.</Typography>
<Button
sx={{ mt: 2 }}
size="small"
Expand Down
13 changes: 0 additions & 13 deletions frontend/src/txns/multisig/verify.ts

This file was deleted.

0 comments on commit d6e67c9

Please sign in to comment.