Skip to content

Commit

Permalink
Use consistant integer types
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Leonard authored and Robert Leonard committed Sep 29, 2023
1 parent 657bf8c commit 70dadfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DidRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,10 @@ contract DIDRegistry is IDidRegistry, Initializable, UUPSUpgradeable, OwnableUpg

function _doesNativeControllerExist(address didIdentifier, address controller) internal view returns(int index) {
DidState storage didState = didStates[didIdentifier];
for(uint32 i=0; i < didState.nativeControllers.length; i++) {
for(uint i=0; i < didState.nativeControllers.length; i++) {
if(didState.nativeControllers[i] == controller) {
// Return index if controller found
return int32(i);
return int(i);
}
}
return -1;
Expand Down

0 comments on commit 70dadfa

Please sign in to comment.