Fixed usage of `getAllLockedTokens`

pull/1364/head
szotov 2019-09-29 20:51:04 +03:00 committed by David Núñez
parent f330f5504b
commit 49932b4c14
1 changed files with 2 additions and 1 deletions

View File

@ -230,7 +230,8 @@ class StakingEscrowAgent(EthereumContractAgent):
if not periods > 0:
raise ValueError("Period must be > 0")
return self.contract.functions.getAllLockedTokens(periods).call()
all_locked_tokens, _stakers = self.contract.functions.getAllActiveStakers(periods).call()
return all_locked_tokens
#
# StakingEscrow Contract API