Skip to content

Commit

Permalink
fix new delegates
Browse files Browse the repository at this point in the history
  • Loading branch information
cryi committed Jun 26, 2024
1 parent ab9e3a4 commit ad8e5b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion constants/version.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package constants

const (
VERSION = "0.0.14"
VERSION = "0.0.15"
CODENAME = "ogun"
)
5 changes: 5 additions & 0 deletions core/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ func (engine *rpcCollector) getDelegateDelegatedContracts(ctx context.Context, a
var delegatedContracts []tezos.Address
err := client.Get(ctx, u, &delegatedContracts)
if err != nil {
if strings.Contains(err.Error(), "delegate.not_registered") {
return []tezos.Address{}, constants.ErrDelegateNotRegistered
}
var rpcErrors []rpc.GenericError
err2 := client.Get(ctx, u, &rpcErrors)
if err2 != nil {
Expand Down Expand Up @@ -303,6 +306,8 @@ func (engine *rpcCollector) fetchInitialDelegationState(ctx context.Context, del
return nil, err
}

fmt.Println("not here")

balance, err := attemptWithClients(engine.rpcs, func(client *rpc.Client) (tezos.Z, error) {
return client.GetContractBalance(ctx, delegate.Delegate, blockBeforeMinimumId)
})
Expand Down

0 comments on commit ad8e5b8

Please sign in to comment.