Skip to content

Commit

Permalink
fix: use EIP-191
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Sep 22, 2023
1 parent 482a015 commit e9e94c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/settings/PushNotifications/logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> }
Expand Down

0 comments on commit e9e94c0

Please sign in to comment.