Skip to content

Commit

Permalink
ignore banksy
Browse files Browse the repository at this point in the history
  • Loading branch information
kkast committed May 8, 2024
1 parent 2eba01c commit 4000540
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bech32-migration/gov/gov.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand All @@ -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)
})
Expand All @@ -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)
})
Expand Down

0 comments on commit 4000540

Please sign in to comment.