From 47f2400682d3235958ff5e63f95aa48a232b4e80 Mon Sep 17 00:00:00 2001 From: rymnc <43716372+rymnc@users.noreply.github.com> Date: Fri, 26 Apr 2024 12:30:10 +0200 Subject: [PATCH] fix: fmt --- script/Deploy.s.sol | 1 - src/WakuRln.sol | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/script/Deploy.s.sol b/script/Deploy.s.sol index 75c2f89..853c97b 100644 --- a/script/Deploy.s.sol +++ b/script/Deploy.s.sol @@ -19,6 +19,5 @@ contract Deploy is BaseScript { // step 3: deploy WakuRln wakuRln = new WakuRln(0, 20, address(verifier)); vm.stopBroadcast(); - } } diff --git a/src/WakuRln.sol b/src/WakuRln.sol index 2e43aa7..ca510e3 100644 --- a/src/WakuRln.sol +++ b/src/WakuRln.sol @@ -11,7 +11,7 @@ contract WakuRln is RlnBase { } function register(uint16 storageIndex, uint256[] calldata commitments) public { - for (uint i = 0; i < commitments.length; i++) { + for (uint256 i = 0; i < commitments.length; i++) { _register(commitments[i], 0); } }