Skip to content

Commit

Permalink
Merge pull request #76 from rhinestonewtf/fix/trust-loop
Browse files Browse the repository at this point in the history
fix: start check loop from 1
  • Loading branch information
kopy-kat authored Aug 12, 2024
2 parents 17d1e4e + 8cdac49 commit 0543f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/TrustManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ abstract contract TrustManager is IRegistry {

// if first attestation is not valid, iterate over the linked list of attesters
// and check if the attestation is valid
for (uint256 i; i < attesterCount; i++) {
for (uint256 i = 1; i < attesterCount; i++) {
attester = $trustedAttesters.linkedAttesters[attester][smartAccount];
$attestation = $getAttestation({ module: module, attester: attester });
if ($attestation.checkValid(moduleType)) return;
Expand Down

0 comments on commit 0543f6e

Please sign in to comment.