Skip to content

x/auth: GetTxsEvent gRPC method does not work with signatures #12471

@technicallyty

Description

@technicallyty

Summary of Bug

GetTxsEvent does not work when querying by signature. In order to query by signature, the sig bytes are base64 encoded, which often has multiple = signs in the string encoding. The GetTxsEvent method, however, fails if there is more than one = sign in the request: https://github.com/cosmos/cosmos-sdk/blob/main/x/auth/tx/service.go#L72

Version

since: 7c19434 to master

Steps to Reproduce

example failing test here:

func (s IntegrationTestSuite) TestQueryBySig() {

  1. build transaction
  2. broadcast tx
  3. extract signature from builder
  4. base64 encode signature
  5. format event string tx.signature='base64EncodedSignature'
  6. call GetTxsEvent grpc method

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions