feat!: Comet v0.38 Integration (#15519)

Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: cool-developer <51834436+cool-develope@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
Aleksandr Bezobchuk
2023-05-24 16:09:19 +00:00
committed by GitHub
co-authored by marbar3778 cool-developer Aaron Craelius Matt Kocubinski Julien Robert
parent 166be3766b
commit 6cee22df52
148 changed files with 14747 additions and 15262 deletions
+4 -4
View File
@@ -147,7 +147,7 @@ func getDelegatorDelegationsSum(ctx sdk.Context, address string, queryServer grp
Data: b,
Path: delegatorDelegationPath,
}
resp, err := queryFn(ctx, req)
resp, err := queryFn(ctx, &req)
if err != nil {
e, ok := status.FromError(err)
if ok && e.Code() == codes.NotFound {
@@ -191,7 +191,7 @@ func getDelegatorUnbondingDelegationsSum(ctx sdk.Context, address, bondDenom str
Data: b,
Path: delegatorUnbondingDelegationsPath,
}
resp, err := queryFn(ctx, req)
resp, err := queryFn(ctx, &req)
if err != nil && !errors.Is(err, sdkerrors.ErrNotFound) {
e, ok := status.FromError(err)
if ok && e.Code() == codes.NotFound {
@@ -238,7 +238,7 @@ func getBalance(ctx sdk.Context, address string, queryServer grpc.Server) (sdk.C
Data: b,
Path: balancesPath,
}
resp, err := queryFn(ctx, req)
resp, err := queryFn(ctx, &req)
if err != nil {
return nil, fmt.Errorf("bank query error, %w", err)
}
@@ -270,7 +270,7 @@ func getBondDenom(ctx sdk.Context, queryServer grpc.Server) (string, error) {
Path: stakingParamsPath,
}
resp, err := queryFn(ctx, req)
resp, err := queryFn(ctx, &req)
if err != nil {
return "", fmt.Errorf("staking query error, %w", err)
}