Skip to content

Commit

Permalink
refactor: remove unnecessary override
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamantios committed Jul 17, 2024
1 parent 3874409 commit 7f5e86c
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions packages/valory/skills/market_manager_abci/rounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from abc import ABC
from enum import Enum
from typing import Dict, Optional, Set, Tuple, Type, cast
from typing import Dict, Set, Tuple, Type, cast

from packages.valory.skills.abstract_round_abci.base import (
AbciApp,
Expand Down Expand Up @@ -97,19 +97,6 @@ class UpdateBetsRound(CollectSameUntilThresholdRound, MarketManagerAbstractRound
collection_key = get_name(SynchronizedData.participant_to_bets_hash)
synchronized_data_class = SynchronizedData

def end_block(self) -> Optional[Tuple[BaseSynchronizedData, Enum]]:
"""Process the end of the block."""
res = super().end_block()
if res is None:
return None

synced_data, event = cast(Tuple[SynchronizedData, Enum], res)
if event != Event.FETCH_ERROR:
return res

synced_data.update(SynchronizedData, bets=synced_data.db.get("bets_hash", ""))
return synced_data, event


class FinishedMarketManagerRound(DegenerateRound, ABC):
"""A round that represents MarketManager has finished"""
Expand Down

0 comments on commit 7f5e86c

Please sign in to comment.