diff --git a/predeployed/setup.cfg b/predeployed/setup.cfg index edca95a..652ab13 100644 --- a/predeployed/setup.cfg +++ b/predeployed/setup.cfg @@ -19,7 +19,7 @@ packages = find: include_package_data = True python_requires = >=3.7 install_requires = - predeployed-generator >= 1.1.0 + predeployed-generator >= 1.2.0 [options.packages.find] where = src diff --git a/predeployed/src/etherbase_predeployed/etherbase_generator.py b/predeployed/src/etherbase_predeployed/etherbase_generator.py index e71c96b..9d845d7 100644 --- a/predeployed/src/etherbase_predeployed/etherbase_generator.py +++ b/predeployed/src/etherbase_predeployed/etherbase_generator.py @@ -2,7 +2,6 @@ from os.path import dirname, join from typing import Dict -from web3.auto import w3 from predeployed_generator.openzeppelin.access_control_enumerable_generator \ import AccessControlEnumerableGenerator @@ -15,7 +14,9 @@ class EtherbaseGenerator(AccessControlEnumerableGenerator): ARTIFACT_FILENAME = 'Etherbase.json' META_FILENAME = 'Etherbase.meta.json' DEFAULT_ADMIN_ROLE = (0).to_bytes(32, 'big') - ETHER_MANAGER_ROLE = w3.solidity_keccak(['string'], ['ETHER_MANAGER_ROLE']) + ETHER_MANAGER_ROLE = AccessControlEnumerableGenerator.calculate_keccak( + ['string'], ['ETHER_MANAGER_ROLE'] + ) # ---------- storage ---------- # -----Context------