Skip to content

Commit

Permalink
fix: defensive checks in UpdateWithdrawalRecordsForSlash; add tests; f…
Browse files Browse the repository at this point in the history
…ixes #607
  • Loading branch information
Joe Bowman committed Dec 27, 2023
1 parent f8031a1 commit 7385e10
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
9 changes: 0 additions & 9 deletions utils/strings.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,3 @@ func StringSliceToMap(in []string) map[string]bool {
}
return out
}

// create a map from a slice of strings for efficient lookup
func StringSliceToMap(in []string) map[string]bool {
out := make(map[string]bool, len(in))
for _, i := range in {
out[i] = true
}
return out
}
1 change: 0 additions & 1 deletion x/interchainstaking/keeper/withdrawal_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"time"

sdkmath "cosmossdk.io/math"

"github.com/cosmos/cosmos-sdk/store/prefix"
sdk "github.com/cosmos/cosmos-sdk/types"

Expand Down
2 changes: 0 additions & 2 deletions x/interchainstaking/keeper/withdrawal_record_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ package keeper_test

import (
"cosmossdk.io/math"

sdk "github.com/cosmos/cosmos-sdk/types"

icskeeper "github.com/quicksilver-zone/quicksilver/x/interchainstaking/keeper"
"github.com/quicksilver-zone/quicksilver/x/interchainstaking/types"
)
Expand Down

0 comments on commit 7385e10

Please sign in to comment.