Skip to content

Commit

Permalink
Merge branch 'main' into lyova-improva-batchcaller
Browse files Browse the repository at this point in the history
  • Loading branch information
ly0va authored Feb 12, 2025
2 parents 0b38f68 + 344053a commit f8996a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/SsoAccount.sol
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ contract SsoAccount is
}

if (_transaction.signature.length == 65) {
(address signer, ECDSA.RecoverError error) = ECDSA.tryRecover(_signedHash, _transaction.signature);
(address signer, ECDSA.RecoverError err) = ECDSA.tryRecover(_signedHash, _transaction.signature);
return
signer == address(0) || error != ECDSA.RecoverError.NoError || !_k1IsOwner(signer)
signer == address(0) || err != ECDSA.RecoverError.NoError || !_k1IsOwner(signer)
? bytes4(0)
: ACCOUNT_VALIDATION_SUCCESS_MAGIC;
}
Expand Down
4 changes: 2 additions & 2 deletions src/handlers/ERC1271Handler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ abstract contract ERC1271Handler is IERC1271Upgradeable, EIP712("Sso1271", "1.0.
*/
function isValidSignature(bytes32 hash, bytes memory signature) external view override returns (bytes4 magicValue) {
if (signature.length == 65) {
(address signer, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature);
(address signer, ECDSA.RecoverError err) = ECDSA.tryRecover(hash, signature);
return
signer == address(0) || error != ECDSA.RecoverError.NoError || !_k1IsOwner(signer) ? bytes4(0) : _ERC1271_MAGIC;
signer == address(0) || err != ECDSA.RecoverError.NoError || !_k1IsOwner(signer) ? bytes4(0) : _ERC1271_MAGIC;
}

(bytes memory decodedSignature, address validator) = SignatureDecoder.decodeSignatureNoHookData(signature);
Expand Down

0 comments on commit f8996a1

Please sign in to comment.