Skip to content

Commit

Permalink
Merge pull request #2418 from keep-network/fix-displaying-owned-deleg…
Browse files Browse the repository at this point in the history
…ations

Fix fetching operators of owner

This PR fixes fetching operators of owner. In the `getOperatorsOfOwner` function
we used `getContractDeploymentBlockNumber` in wrong way.
  • Loading branch information
michalsmiarowski authored Apr 13, 2021
2 parents c0db9f5 + d5521ba commit 827a371
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion solidity/dashboard/src/services/token-staking.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ export const getOperatorsOfOwner = async (owner, operatorsFilterParam) => {
const ownerDelegations = await stakingContract.getPastEvents(
"StakeDelegated",
{
fromBlock: await getContractDeploymentBlockNumber.stakingContract,
fromBlock: await getContractDeploymentBlockNumber(
TOKEN_STAKING_CONTRACT_NAME
),
filter: { owner, ...filterParam },
}
)
Expand Down

0 comments on commit 827a371

Please sign in to comment.