Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oren-lava committed Dec 15, 2024
1 parent 2567197 commit 7903158
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x/pairing/keeper/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,16 @@ func (ts *tester) isProviderFrozen(provider string, chain string) bool {
res, err := ts.QueryPairingProvider(provider, chain)
require.NoError(ts.T, err)
foundChain := false
var isFrozen bool
for _, stakeEntry := range res.StakeEntries {
if stakeEntry.Address == provider && stakeEntry.Chain == chain {
foundChain = true
return stakeEntry.IsFrozen()
isFrozen = stakeEntry.IsFrozen()
break
}
}
if !foundChain {
require.Fail(ts.T, "provider not staked in chain", "provider: %s, chain: %s", provider, chain)
}
return false
return isFrozen
}

0 comments on commit 7903158

Please sign in to comment.