Cast int (the result of a sum) back to NuNits

pull/2037/head
Bogdan Opanchuk 2020-05-26 23:29:10 -07:00 committed by Kieran R. Prasch
parent ca9c27c712
commit 591e8b7b3d
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ class StakingEscrowAgent(EthereumContractAgent):
while start_index < num_stakers:
active_stakers: Tuple[NuNits, Tuple[int]] = self.contract.functions.getActiveStakers(periods, start_index, pagination_size).call()
temp_locked_tokens, temp_stakers = active_stakers
n_tokens += temp_locked_tokens
n_tokens = NuNits(n_tokens + temp_locked_tokens)
stakers += temp_stakers
start_index += pagination_size
else: