From 78977726063ef9993773f2b82e9ba84107e70c84 Mon Sep 17 00:00:00 2001 From: skosito Date: Mon, 5 Aug 2024 17:56:23 +0200 Subject: [PATCH] fail on medium findings --- .github/workflows/slither_v2.yaml | 2 +- v2/src/evm/ZetaConnectorNonNative.sol | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/slither_v2.yaml b/.github/workflows/slither_v2.yaml index ad18dd3c..26292f30 100644 --- a/.github/workflows/slither_v2.yaml +++ b/.github/workflows/slither_v2.yaml @@ -57,7 +57,7 @@ jobs: node-version: "21.1.0" slither-config: "v2/slither.config.json" solc-version: "0.8.26" - fail-on: none + fail-on: medium target: "v2/" - name: Upload SARIF file diff --git a/v2/src/evm/ZetaConnectorNonNative.sol b/v2/src/evm/ZetaConnectorNonNative.sol index 7186016f..470ef225 100644 --- a/v2/src/evm/ZetaConnectorNonNative.sol +++ b/v2/src/evm/ZetaConnectorNonNative.sol @@ -27,11 +27,11 @@ contract ZetaConnectorNonNative is ZetaConnectorBase { { } /// @notice Set max supply for minting. - /// @param _maxSupply New max supply. + /// @param maxSupply_ New max supply. /// @dev This function can only be called by the TSS address. - function setMaxSupply(uint256 _maxSupply) external onlyRole(WITHDRAWER_ROLE) whenNotPaused { - maxSupply = _maxSupply; - emit MaxSupplyUpdated(_maxSupply); + function setMaxSupply(uint256 maxSupply_) external onlyRole(WITHDRAWER_ROLE) whenNotPaused { + maxSupply = maxSupply_; + emit MaxSupplyUpdated(maxSupply_); } /// @notice Withdraw tokens to a specified address.