Skip to content

Commit

Permalink
Merge pull request #72 from gateway-fm/feat/delegation-updated-start
Browse files Browse the repository at this point in the history
fix getIterationsForQuery ContractCore
  • Loading branch information
dmitriyselivanov authored Aug 28, 2024
2 parents 1589e02 + 0bc724f commit bf296b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions services/pools.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package services

import (
"context"
"github.com/ethereum/go-ethereum"
"math/big"
"time"

"github.com/ethereum/go-ethereum"

"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"

Expand Down Expand Up @@ -104,7 +105,7 @@ func (s *Service) RetrieveDelegationUpdatedLimit(limit uint64) ([]*models.Delega
}

func (s *Service) RetrieveDelegationUpdated(fromBlock uint64, toBlock uint64, limit uint64) ([]*models.DelegationUpdated, error) {
iterations, lastBlock, err := s.getIterationsForQuery(fromBlock, toBlock, limit)
iterations, lastBlock, err := s.getIterationsForQuery(fromBlock, toBlock, limit, ContractCore)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit bf296b0

Please sign in to comment.