Fail at runtime if not implemented
This commit is contained in:
parent
058cbeed94
commit
e3eb858ed9
@ -11,7 +11,7 @@ class Classifier(ABC):
|
||||
@staticmethod
|
||||
@abstractmethod
|
||||
def get_classification() -> Classification:
|
||||
pass
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
class TransferClassifier(Classifier):
|
||||
@ -22,7 +22,7 @@ class TransferClassifier(Classifier):
|
||||
@staticmethod
|
||||
@abstractmethod
|
||||
def get_transfer(trace: DecodedCallTrace) -> ERC20Transfer:
|
||||
pass
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
class SwapClassifier(Classifier):
|
||||
|
Loading…
x
Reference in New Issue
Block a user