Skip to content

Commit

Permalink
fixing merge from main with new api helpers instead census package
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmenendez committed Nov 10, 2023
1 parent dea69c6 commit e0a142f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/strategies.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"strconv"

"github.com/ethereum/go-ethereum/common"
"github.com/vocdoni/census3/census"
queries "github.com/vocdoni/census3/db/sqlc"
"github.com/vocdoni/census3/lexer"
"github.com/vocdoni/census3/strategyoperators"
Expand Down Expand Up @@ -548,8 +547,8 @@ func (capi *census3API) estimateStrategySize(strategyID uint64) (int, error) {
return 0, ErrInvalidStrategyPredicate.With("empty predicate")
}
// calculate the strategy holders
strategyHolders, _, _, err := census.CalculateStrategyHolders(
internalCtx, capi.db.QueriesRO, capi.w3p, strategyID, strategy.Predicate)
strategyHolders, _, _, err := CalculateStrategyHolders(internalCtx,
capi.db.QueriesRO, capi.w3p, strategyID, strategy.Predicate)
if err != nil {
return 0, ErrEvalStrategyPredicate.WithErr(err)
}
Expand Down

0 comments on commit e0a142f

Please sign in to comment.