You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the for loop, we access on the slice without checking the length. When the provided argument has length 0 but not nil([]byte{}), it throws a runtime error index out of range. We have to replace the conditional expression to len(prefix) == 0 from the current prefix == nil.
The text was updated successfully, but these errors were encountered:
In https://github.com/cosmos/cosmos-sdk/blob/develop/store/types/utils.go#L61
In the for loop, we access on the slice without checking the length. When the provided argument has length 0 but not nil(
[]byte{}
), it throws a runtime errorindex out of range
. We have to replace the conditional expression tolen(prefix) == 0
from the currentprefix == nil
.The text was updated successfully, but these errors were encountered: