From e9e94c0250411ec18748c6e768654e73c3c0e502 Mon Sep 17 00:00:00 2001 From: iamacook Date: Fri, 22 Sep 2023 16:07:45 +0200 Subject: [PATCH] fix: use EIP-191 --- src/components/settings/PushNotifications/logic.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/settings/PushNotifications/logic.ts b/src/components/settings/PushNotifications/logic.ts index a37be46d7c..74c39b12d9 100644 --- a/src/components/settings/PushNotifications/logic.ts +++ b/src/components/settings/PushNotifications/logic.ts @@ -55,8 +55,7 @@ const getSafeRegistrationSignature = ({ const message = MESSAGE_PREFIX + timestamp + uuid + token + safeAddresses.sort().join('') const hashedMessage = keccak256(toUtf8Bytes(message)) - // TODO: Use `signMessage` when supported - return web3.getSigner()._legacySignMessage(arrayify(hashedMessage)) + return web3.getSigner().signMessage(arrayify(hashedMessage)) } export type NotifiableSafes = { [chainId: string]: Array }