mirror of https://github.com/nucypher/nucypher.git
commit
c392457f18
|
@ -229,7 +229,7 @@ def check_and_convert_big_int_string_to_int(value: str) -> Union[str, int]:
|
|||
"""
|
||||
Check if a string is a big int string and convert it to an integer, otherwise return the string.
|
||||
"""
|
||||
if re.fullmatch("^-?\d+n$", value):
|
||||
if re.fullmatch(r"^-?\d+n$", value):
|
||||
try:
|
||||
result = int(value[:-1])
|
||||
return result
|
||||
|
|
|
@ -247,9 +247,13 @@ def fee_model(nucypher_dependency, deployer_account, coordinator, ritual_token):
|
|||
ritual_token.address,
|
||||
FEE_RATE,
|
||||
)
|
||||
treasury_role = coordinator.TREASURY_ROLE()
|
||||
coordinator.grantRole(
|
||||
treasury_role, deployer_account.address, sender=deployer_account
|
||||
coordinator.TREASURY_ROLE(), deployer_account.address, sender=deployer_account
|
||||
)
|
||||
coordinator.grantRole(
|
||||
coordinator.FEE_MODEL_MANAGER_ROLE(),
|
||||
deployer_account.address,
|
||||
sender=deployer_account,
|
||||
)
|
||||
coordinator.approveFeeModel(contract.address, sender=deployer_account)
|
||||
|
||||
|
|
Loading…
Reference in New Issue