pull/2203/head
Khang Vo (doublevkay) 1 year ago
parent 314ceeb3c2
commit 2b81c02c61
  1. 4
      slither/detectors/statements/unprotected_upgradeable.py

@ -49,10 +49,6 @@ def _whitelisted_modifiers(f: Function) -> bool:
# https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/3dec82093ea4a490d63aab3e925fed4f692909e8/contracts/proxy/utils/UUPSUpgradeable.sol#L38-L42 # https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/3dec82093ea4a490d63aab3e925fed4f692909e8/contracts/proxy/utils/UUPSUpgradeable.sol#L38-L42
return "onlyProxy" not in [modifier.name for modifier in f.modifiers] return "onlyProxy" not in [modifier.name for modifier in f.modifiers]
import re
def _initialize_functions(contract: Contract) -> List[Function]: def _initialize_functions(contract: Contract) -> List[Function]:
return list( return list(
filter( filter(

Loading…
Cancel
Save