From a85466e75bbb29e215522a7c5031b9fbbd256dcb Mon Sep 17 00:00:00 2001 From: Thrilok kumar Date: Wed, 17 Jul 2024 13:56:24 -0400 Subject: [PATCH] Check signedMessage if signature doesn't match --- contracts/v2/accounts/default/implementation_default.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contracts/v2/accounts/default/implementation_default.sol b/contracts/v2/accounts/default/implementation_default.sol index 8047759..8bd2a53 100644 --- a/contracts/v2/accounts/default/implementation_default.sol +++ b/contracts/v2/accounts/default/implementation_default.sol @@ -220,7 +220,9 @@ contract Record is Constants { } else { address signer = ECDSA.recover(hash, signature); - require(_auth[signer], "invalid-EIP-1271-signature"); + if (!_auth[signer]) { + require(_signedMessages[hash], "invalid-EIP-1271-signature"); + } } return EIP1271_MAGIC_VALUE;