Skip to content

Commit

Permalink
Fix slither finding
Browse files Browse the repository at this point in the history
  • Loading branch information
jcsec-security committed Jan 22, 2025
1 parent ba67190 commit 2cfc9b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AAFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ contract AAFactory {
require(success, "Deployment failed");
(accountAddress) = abi.decode(returnData, (address));

accountMappings[_uniqueAccountId] = accountAddress;

// Initialize the newly deployed account with validators, hooks and K1 owners.
ISsoAccount(accountAddress).initialize(_initialValidators, _initialK1Owners);

accountMappings[_uniqueAccountId] = accountAddress;

emit AccountCreated(accountAddress, _uniqueAccountId);
}
}

0 comments on commit 2cfc9b4

Please sign in to comment.