Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
fix cast
Browse files Browse the repository at this point in the history
  • Loading branch information
coffeexcoin committed Dec 13, 2024
1 parent b4f4eda commit 2510710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/validators/SessionKeyValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ contract SessionKeyValidator is IValidationHook, IModuleValidator, IModule {

// Disallow self-targeting transactions with session keys as these have the ability to administer
// the smart account.
require(transaction.to != msg.sender, "Can not target self");
require(address(uint160(transaction.to)) != msg.sender, "Can not target self");

bytes32 sessionHash = keccak256(abi.encode(spec));
sessions[sessionHash].validate(transaction, spec, periodIds);
Expand Down

0 comments on commit 2510710

Please sign in to comment.