diff --git a/bech32-migration/transfermiddleware/transfermiddleware.go b/bech32-migration/transfermiddleware/transfermiddleware.go index 68add6ef..b28cac2c 100644 --- a/bech32-migration/transfermiddleware/transfermiddleware.go +++ b/bech32-migration/transfermiddleware/transfermiddleware.go @@ -17,7 +17,7 @@ func MigrateAddressBech32(ctx sdk.Context, storeKey storetypes.StoreKey, cdc cod store := ctx.KVStore(storeKey) relayAddressPrefix := []byte{1} - iterator := sdk.KVStorePrefixIterator(store, relayAddressPrefix) + iterator := sdk.KVStorePrefixIterator(store, types.KeyRlyAddress) for ; iterator.Valid(); iterator.Next() { allowRelayAddressCount++