Skip to content

Commit 0543f6e

Browse files
authored
Merge pull request #76 from rhinestonewtf/fix/trust-loop
fix: start check loop from 1
2 parents 17d1e4e + 8cdac49 commit 0543f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/TrustManager.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ abstract contract TrustManager is IRegistry {
119119

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

0 commit comments

Comments
 (0)