Skip to content

Can't query multisig account #6745

Closed
Closed

Description

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

  1. Create multisig address by send some amount of funds
  2. Send tx from the multisig address.
  3. Query multisig address

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions