Skip to content

Commit

Permalink
Fix addresses printing in final_check script
Browse files Browse the repository at this point in the history
  • Loading branch information
Psirex committed Dec 3, 2021
1 parent f2ef0e4 commit 2120146
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/final_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,57 +296,57 @@ def validate_reward_programs_registry_setup(
voting = lido_contracts.aragon.voting
log.nb("RewardProgramsRegistry", reward_programs_registry)
assert_equals(
" voting ({voting}) has DEFAULT_ADMIN_ROLE",
f" voting ({voting}) has DEFAULT_ADMIN_ROLE",
reward_programs_registry.hasRole(
reward_programs_registry.DEFAULT_ADMIN_ROLE(), voting
),
True,
)
assert_equals(
" deployer ({deployer}) has no DEFAULT_ADMIN role",
f" deployer ({deployer}) has no DEFAULT_ADMIN role",
not reward_programs_registry.hasRole(
reward_programs_registry.DEFAULT_ADMIN_ROLE(), deployer
),
True,
)
assert_equals(
" deployer ({deployer}) has no ADD_REWARD_PROGRAM_ROLE role",
f" deployer ({deployer}) has no ADD_REWARD_PROGRAM_ROLE role",
not reward_programs_registry.hasRole(
reward_programs_registry.ADD_REWARD_PROGRAM_ROLE(), deployer
),
True,
)
assert_equals(
" deployer ({deployer}) has no REMOVE_REWARD_PROGRAM_ROLE role",
f" deployer ({deployer}) has no REMOVE_REWARD_PROGRAM_ROLE role",
not reward_programs_registry.hasRole(
reward_programs_registry.REMOVE_REWARD_PROGRAM_ROLE(), deployer
),
True,
)
assert_equals(
" voting ({voting}) has ADD_REWARD_PROGRAM_ROLE",
f" voting ({voting}) has ADD_REWARD_PROGRAM_ROLE",
reward_programs_registry.hasRole(
reward_programs_registry.ADD_REWARD_PROGRAM_ROLE(), voting
),
True,
)
assert_equals(
" voting ({voting}) has REMOVE_REWARD_PROGRAM_ROLE",
f" voting ({voting}) has REMOVE_REWARD_PROGRAM_ROLE",
reward_programs_registry.hasRole(
reward_programs_registry.REMOVE_REWARD_PROGRAM_ROLE(), voting
),
True,
)
assert_equals(
" EVMScriptExecutor ({evm_script_executor}) has ADD_REWARD_PROGRAM_ROLE",
f" EVMScriptExecutor ({evm_script_executor}) has ADD_REWARD_PROGRAM_ROLE",
reward_programs_registry.hasRole(
reward_programs_registry.ADD_REWARD_PROGRAM_ROLE(),
evm_script_executor,
),
True,
)
assert_equals(
" EVMScriptExecutor ({evm_script_executor}) has REMOVE_REWARD_PROGRAM_ROLE",
f" EVMScriptExecutor ({evm_script_executor}) has REMOVE_REWARD_PROGRAM_ROLE",
reward_programs_registry.hasRole(
reward_programs_registry.REMOVE_REWARD_PROGRAM_ROLE(),
evm_script_executor,
Expand Down

0 comments on commit 2120146

Please sign in to comment.