Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
trungnt1811 committed May 31, 2024
1 parent cb7ce89 commit 89850c7
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions airdrop/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,20 @@ import (
"strconv"
"strings"

"github.com/cenkalti/backoff/v4"
airdropBackoff "github.com/eve-network/eve/airdrop/backoff"
"github.com/eve-network/eve/airdrop/config"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/grpc/metadata"

sdkmath "cosmossdk.io/math"

"github.com/cenkalti/backoff/v4"
"github.com/cosmos/cosmos-sdk/types/bech32"
grpctypes "github.com/cosmos/cosmos-sdk/types/grpc"
"github.com/cosmos/cosmos-sdk/types/query"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
airdropBackoff "github.com/eve-network/eve/airdrop/backoff"
"github.com/eve-network/eve/airdrop/config"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/grpc/metadata"
)

func MakeGetRequest(uri string) (*http.Response, error) {
Expand Down Expand Up @@ -124,7 +125,7 @@ func GetValidators(stakingClient stakingtypes.QueryClient, blockHeight string) (
return resp.Validators, nil
}

func GetValidatorDelegations(stakingClient stakingtypes.QueryClient, validatorAddr string, blockHeight string) (
func GetValidatorDelegations(stakingClient stakingtypes.QueryClient, validatorAddr, blockHeight string) (
*stakingtypes.QueryValidatorDelegationsResponse, error,
) {
ctx := metadata.AppendToOutgoingContext(context.Background(), grpctypes.GRPCBlockHeightHeader, blockHeight)
Expand Down Expand Up @@ -322,4 +323,4 @@ func FetchTokenPrice(apiURL, coinID string) (sdkmath.LegacyDec, error) {

func SetupGRPCConnection(address string) (*grpc.ClientConn, error) {
return grpc.NewClient(address, grpc.WithTransportCredentials(insecure.NewCredentials()))
}
}

0 comments on commit 89850c7

Please sign in to comment.