Skip to content

Commit

Permalink
fail on medium findings
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Aug 5, 2024
1 parent bd903e5 commit 7897772
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/slither_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions v2/src/evm/ZetaConnectorNonNative.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7897772

Please sign in to comment.