Skip to content

[Bug]: Regression, nested multisigs fail marshal/unmarshal in main #20382

@facundomedica

Description

@facundomedica

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

This works on v0.50 but not on main.

./build/simd keys add alice --keyring-backend test 
./build/simd keys add alicems --multisig alice --multisig-threshold 1
./build/simd keys add alicemstwo --multisig alice,alicems --multisig-threshold 2
./build/simd keys list

Errors:

panic: amino binary marshal marshaling error for {TypeUrl:/cosmos.crypto.secp256k1.PubKey Value:[10 33 3 199 228 92 233 213 255 97 11 242 175 129 193 69 103 73 176 130 222 220 177 157 207 204 60 255 94 220 18 109 241 229 209] XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0 cachedValue:0x140016d6048 compat:<nil>}, this is likely because amino is being used directly (instead of codec.LegacyAmino which is preferred) or UnpackInterfacesMessage is not defined for some type which contains a protobuf Any either directly or via one of its members. To see a stacktrace of where the error is coming from, set the var Debug = true in codec/types/compat.go
unable to unmarshal item.Data: "no registered implementations of type multisig.LegacyAminoPubKey"

Cosmos SDK Version

main

How to reproduce?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions