Closed
Description
opened on Jul 16, 2020
Summary of Bug
Current account querier return MarshalJSON(Account) when it receive account query. A cli program, which request the account info, do UnmarshalJSON like Here. In this process, the cli program return error because multisig pubkey is longer than the length what bech32
decoder allow.
so the response is ERROR: decoding bech32 failed: invalid bech32 string length 217
ref) bech.Decode func
// Decode decodes a bech32 encoded string, returning the human-readable
// part and the data part excluding the checksum.
func Decode(bech string) (string, []byte, error) {
// The maximum allowed length for a bech32 string is 90. It must also
// be at least 8 characters, since it needs a non-empty HRP, a
// separator, and a 6 character checksum.
if len(bech) < 8 || len(bech) > 90 {
return "", nil, fmt.Errorf("invalid bech32 string length %d",
len(bech))
}
...
Version
v0.38.x
Steps to Reproduce
- Create multisig address by send some amount of funds
- Send tx from the multisig address.
- Query multisig address
For Admin Use
- Not duplicate issue
- Appropriate labels applied
- Appropriate contributors tagged
- Contributor assigned/self-assigned
Metadata
Assignees
Labels
No labels
Activity