Skip to content

Commit 48a0bc2

Browse files
authored
Merge pull request #163 from PotLock/testnet
change block height
2 parents 2406f52 + ac140ea commit 48a0bc2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pots/api.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,7 @@ def get(self, request: Request, voter_id: str, *args, **kwargs):
520520
try:
521521
voter_data = self.get_voter_data(voter_id)
522522

523-
# accounts = self.get_bulk_account_data([voter_id])
524-
account_data = accounts = AccountSerializer(voter_id).data
523+
account_data = self.get_bulk_account_data([voter_id])
525524

526525
response_data = {
527526
"voter_id": voter_id,

pots/serializers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def get_is_human(self, obj) -> bool:
361361

362362
if cached_res is not None:
363363
return cached_res
364-
url = f"https://rpc.web4.near.page/account/v1.nadabot.near/view/is_human?account_id={voter_id}&near_block_height=137346724"
364+
url = f"https://rpc.web4.near.page/account/v1.nadabot.near/view/is_human?account_id={voter_id}&near_block_height=137273829"
365365
response = requests.get(url)
366366
if response.status_code == 200:
367367
is_human = response.json()
@@ -376,7 +376,7 @@ def get_staking_token_balance(self, obj):
376376

377377
if cached_res is not None:
378378
return cached_res
379-
url = f"https://rpc.web4.near.page/account/meta-pool.near/view/ft_balance_of?account_id={voter_id}&near_block_height=137346724"
379+
url = f"https://rpc.web4.near.page/account/meta-pool.near/view/ft_balance_of?account_id={voter_id}&near_block_height=137273829"
380380
response = requests.get(url)
381381
if response.status_code == 200:
382382
balance = response.json()

0 commit comments

Comments
 (0)