From 789ca8476d0af317764fe2462113a80a3ec0ce2d Mon Sep 17 00:00:00 2001 From: Lorenz Herzberger Date: Thu, 29 Sep 2022 15:53:13 +0200 Subject: [PATCH] removed unnecessary election method Signed-off-by: Lorenz Herzberger --- planetmint/transactions/types/elections/election.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/planetmint/transactions/types/elections/election.py b/planetmint/transactions/types/elections/election.py index 5f1bfc7..b3a4329 100644 --- a/planetmint/transactions/types/elections/election.py +++ b/planetmint/transactions/types/elections/election.py @@ -134,9 +134,6 @@ class Election(Transaction): return False - def store(self, planet, height, is_concluded): # TODO: move somewhere else - planet.store_election(self.id, height, is_concluded) - def show_election(self, planet): # TODO: move somewhere else data = self.asset["data"] if "public_key" in data.keys(): @@ -215,7 +212,7 @@ class Election(Transaction): continue validator_update = election.on_approval(planet, new_height) - election.store(planet, new_height, is_concluded=True) + planet.store_election(election.id, new_height, is_concluded=True) return [validator_update] if validator_update else []