Skip to content

Commit

Permalink
Modify multisig check
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilkumarpilli committed Mar 4, 2021
1 parent 70603b6 commit 1ebd023
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions x/auth/legacy/v040/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ func convertBaseAccount(old *v039auth.BaseAccount) *v040auth.BaseAccount {

_, ok := old.PubKey.(*multisigtypes.LegacyAminoPubKey)

// If the old genesis had a pubkey, we pack it inside an Any. Or else, we
// just leave it nil.
if old.PubKey != nil && !ok {
// If pubkey is multisig type, then leave it as nil for now
// Else if the old genesis had a pubkey, we pack it inside an Any.
// Or else, we just leave it nil.
if ok {
// TODO migrate multisig public_keys
} else if old.PubKey != nil {
var err error
any, err = codectypes.NewAnyWithValue(old.PubKey)
if err != nil {
Expand Down

0 comments on commit 1ebd023

Please sign in to comment.