Skip to content

Commit

Permalink
Fix Pydantic error
Browse files Browse the repository at this point in the history
  • Loading branch information
olethanh authored and hoh committed Sep 9, 2024
1 parent de27ed0 commit acc2302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aleph/vm/orchestrator/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def token(self) -> str | None:
return self.super_token or self.standard_token

@root_validator(pre=True)
def check_tokens(self, values):
def check_tokens(cls, values):
if not values.get("standard_token") and not values.get("super_token"):
msg = "At least one of standard_token or super_token must be provided."
raise ValueError(msg)
Expand Down

0 comments on commit acc2302

Please sign in to comment.