From 4000540d47cb1f4eea41072bc5eac84465211a69 Mon Sep 17 00:00:00 2001 From: kkast Date: Wed, 8 May 2024 18:59:34 +0300 Subject: [PATCH] ignore banksy --- bech32-migration/gov/gov.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bech32-migration/gov/gov.go b/bech32-migration/gov/gov.go index cf195a8f9..54eaebb12 100644 --- a/bech32-migration/gov/gov.go +++ b/bech32-migration/gov/gov.go @@ -18,7 +18,7 @@ func MigrateAddressBech32(ctx sdk.Context, storeKey storetypes.StoreKey, cdc cod utils.IterateStoreByPrefix(ctx, storeKey, types.ProposalsKeyPrefix, func(bz []byte) []byte { proposal := v1.Proposal{} cdc.MustUnmarshal(bz, &proposal) - proposal.Proposer = utils.ConvertAccAddr(proposal.Proposer) + proposal.Proposer = utils.SafeConvertAddress(proposal.Proposer) proposalCount++ return cdc.MustMarshal(&proposal) }) @@ -29,11 +29,11 @@ func MigrateAddressBech32(ctx sdk.Context, storeKey storetypes.StoreKey, cdc cod if err != nil { vote := v1.Vote{} cdc.MustUnmarshal(bz, &vote) - vote.Voter = utils.ConvertAccAddr(vote.Voter) + vote.Voter = utils.SafeConvertAddress(vote.Voter) voteCount++ return cdc.MustMarshal(&vote) } - vote.Voter = utils.ConvertAccAddr(vote.Voter) + vote.Voter = utils.SafeConvertAddress(vote.Voter) voteCount++ return cdc.MustMarshal(&vote) }) @@ -44,11 +44,11 @@ func MigrateAddressBech32(ctx sdk.Context, storeKey storetypes.StoreKey, cdc cod if err != nil { vote := v1.Deposit{} cdc.MustUnmarshal(bz, &vote) - deposit.Depositor = utils.ConvertAccAddr(deposit.Depositor) + deposit.Depositor = utils.SafeConvertAddress(deposit.Depositor) depositCount++ return cdc.MustMarshal(&deposit) } - deposit.Depositor = utils.ConvertAccAddr(deposit.Depositor) + deposit.Depositor = utils.SafeConvertAddress(deposit.Depositor) depositCount++ return cdc.MustMarshal(&deposit) })