From 43c43c03bc92e9d5b69d6ffe9bd59abce583a5d0 Mon Sep 17 00:00:00 2001 From: rymnc <43716372+rymnc@users.noreply.github.com> Date: Wed, 29 May 2024 20:47:50 +0530 Subject: [PATCH] fix: lint --- src/WakuRlnV2.sol | 2 +- test/WakuRlnV2.t.sol | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/WakuRlnV2.sol b/src/WakuRlnV2.sol index 70924ca..640e193 100644 --- a/src/WakuRlnV2.sol +++ b/src/WakuRlnV2.sol @@ -91,7 +91,7 @@ contract WakuRlnV2 is Initializable, OwnableUpgradeable, UUPSUpgradeable { idCommitmentIndex = 0; } - function _authorizeUpgrade(address newImplementation) internal override onlyOwner { } + function _authorizeUpgrade(address newImplementation) internal override onlyOwner { } // solhint-disable-line /// @notice Checks if a commitment is valid /// @param idCommitment The idCommitment of the member diff --git a/test/WakuRlnV2.t.sol b/test/WakuRlnV2.t.sol index 5e5dd4c..af93a1a 100644 --- a/test/WakuRlnV2.t.sol +++ b/test/WakuRlnV2.t.sol @@ -3,12 +3,10 @@ pragma solidity >=0.8.19 <0.9.0; import { Test } from "forge-std/Test.sol"; import { stdStorage, StdStorage } from "forge-std/Test.sol"; -import "forge-std/console.sol"; import { Deploy } from "../script/Deploy.s.sol"; import { DeploymentConfig } from "../script/DeploymentConfig.s.sol"; -import "../src/WakuRlnV2.sol"; +import "../src/WakuRlnV2.sol"; // solhint-disable-line import { PoseidonT3 } from "poseidon-solidity/PoseidonT3.sol"; -import { LazyIMT } from "@zk-kit/imt.sol/LazyIMT.sol"; contract WakuRlnV2Test is Test { using stdStorage for StdStorage; @@ -198,6 +196,7 @@ contract WakuRlnV2Test is Test { deployment.upgrade(address(w), newImplementation); // ensure that the implementation is set correctly // ref: + // solhint-disable-next-line // https://github.com/OpenZeppelin/openzeppelin-foundry-upgrades/blob/4cd15fc50b141c77d8cc9ff8efb44d00e841a299/src/internal/Core.sol#L289 address fetchedImpl = address( uint160(uint256(vm.load(address(w), 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc)))