Skip to content

Commit

Permalink
fix CL pool valid key length check (#1634)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Bowman authored May 29, 2024
1 parent 82c2146 commit 0d4322f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/participationrewards/keeper/callbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ func OsmosisClPoolUpdateCallback(ctx sdk.Context, k *Keeper, response []byte, qu
return err
}

// check query.Request is at least 9 bytes in length. (0x02 + 8 bytes for uint64)
if len(query.Request) < 5 {
// check query.Request is at least 2 bytes - 0x03 + poolID
if len(query.Request) < 2 {
return errors.New("query request not sufficient length")
}
// assert first character is 0x03 as expected (cl pool prefix)
Expand Down

0 comments on commit 0d4322f

Please sign in to comment.