Skip to content

Commit c5bf6b7

Browse files
committed
fix: create_tw_vote -> start_vote
1 parent 97edaea commit c5bf6b7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/vote_tw_csm2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def to_percent(bp: int) -> float:
135135
"""
136136
return bp / 10000 * 100
137137

138-
def create_tw_vote(tx_params: Dict[str, str], silent: bool) -> Tuple[int, Optional[Any]]:
138+
def start_vote(tx_params: Dict[str, str], silent: bool) -> Tuple[int, Optional[Any]]:
139139
f"""
140140
Triggerable withdrawals voting baking and sending.
141141
@@ -647,7 +647,7 @@ def main():
647647
if get_is_live():
648648
tx_params["priority_fee"] = get_priority_fee()
649649

650-
vote_id, _ = create_tw_vote(tx_params=tx_params, silent=False)
650+
vote_id, _ = start_vote(tx_params=tx_params, silent=False)
651651

652652
vote_id >= 0 and print(f"Vote created: {vote_id}.")
653653

tests/test_vote_tw_csm2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44

55
from typing import Dict, Tuple, List, NamedTuple, Optional, Any, Sequence
6-
from scripts.vote_tw_csm2 import create_tw_vote
6+
from scripts.vote_tw_csm2 import start_vote
77
from brownie import interface, reverts, chain, convert, web3, ZERO_ADDRESS
88
from brownie.network.event import EventDict
99
from utils.easy_track import create_permissions
@@ -356,7 +356,7 @@ def test_tw_vote(helpers, accounts, vote_ids_from_env, stranger):
356356
(vote_id,) = vote_ids_from_env
357357
else:
358358
tx_params = {"from": LDO_HOLDER_ADDRESS_FOR_TESTS}
359-
vote_id, _ = create_tw_vote(tx_params, silent=True)
359+
vote_id, _ = start_vote(tx_params, silent=True)
360360

361361
vote_tx = helpers.execute_vote(accounts, vote_id, contracts.voting)
362362
print(f"voteId = {vote_id}")

0 commit comments

Comments
 (0)