mirror of https://github.com/nucypher/nucypher.git
Fixed usage of `getAllLockedTokens`
parent
f330f5504b
commit
49932b4c14
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue