Skip to content

Commit

Permalink
test: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
snobbee committed Dec 8, 2023
1 parent ba28cf7 commit 50cc47d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/chain-initiator/filter-accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ func filterAccounts(accounts []Account, filterAddresses []string) []Account {
filterMap[addr] = struct{}{}
}

var newAccounts []Account
newAccounts := []Account{}
for _, account := range accounts {
if shouldFilterAccount(account, filterMap) {
continue
Expand Down
2 changes: 1 addition & 1 deletion scripts/chain-initiator/filter-balances.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func filterBalances(balances []banktypes.Balance, filterAddresses []string) ([]b
filterMap[addr] = struct{}{}
}

var newBalances []banktypes.Balance
newBalances := []banktypes.Balance{}
var coinsToRemove sdk.Coins
for _, balance := range balances {
if _, exists := filterMap[balance.Address]; exists {
Expand Down
1 change: 1 addition & 0 deletions scripts/chain-initiator/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ type CLP struct {
Params CLPParams `json:"params"`
PoolList []interface{} `json:"pool_list"`
LiquidityProviders []interface{} `json:"liquidity_providers"`
RewardsBucketList []interface{} `json:"rewards_bucket_list,omitempty"` // omitted for now
}

type Margin struct {
Expand Down

0 comments on commit 50cc47d

Please sign in to comment.