We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 34b68f8 + 57da50f commit 876a712Copy full SHA for 876a712
pots/serializers.py
@@ -353,7 +353,7 @@ class MpdaoSnapshotSerializer(serializers.Serializer):
353
354
staking_token_id = serializers.SerializerMethodField() # mpdao is only available on mainnet,
355
356
- def get_is_human(self, obj):
+ def get_is_human(self, obj) -> bool:
357
voter_id = obj.get('voter_id')
358
url = f"https://rpc.web4.near.page/account/v1.nadabot.near/view/is_human?account_id={voter_id}"
359
response = requests.get(url)
0 commit comments