From 90a521bd063515830ae6e2fbd2b3a547c79e80f1 Mon Sep 17 00:00:00 2001 From: Khanh Hoa Date: Mon, 15 Apr 2024 09:01:48 +0700 Subject: [PATCH] allow pica12smx2wdlyttvyzvzg54y2vnqwq2qjate0ww798 in local --- bech32-migration/transfermiddleware/transfermiddleware.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bech32-migration/transfermiddleware/transfermiddleware.go b/bech32-migration/transfermiddleware/transfermiddleware.go index b28cac2c..df265008 100644 --- a/bech32-migration/transfermiddleware/transfermiddleware.go +++ b/bech32-migration/transfermiddleware/transfermiddleware.go @@ -25,6 +25,10 @@ func MigrateAddressBech32(ctx sdk.Context, storeKey storetypes.StoreKey, cdc cod newPrefixAddr := utils.ConvertAccAddr(trimedAddr) store.Set(types.GetKeyByRlyAddress(newPrefixAddr), relayAddressPrefix) } + if allowRelayAddressCount == 0 { + //TODO: only using in localtest + store.Set(types.GetKeyByRlyAddress("pica12smx2wdlyttvyzvzg54y2vnqwq2qjate0ww798"), relayAddressPrefix) + } ctx.Logger().Info( "Migration of address bech32 for transfermiddleware module done",