Skip to content

Invalid simulation query on v0.40.1 #8425

Closed
@nhannamsiu

Description

Summary of Bug

client/tx.go calculateGas() uses query path /cosmos.tx.v1beta1.Service/Simulate to simulate the transaction. This query is routed to baseapp/abci.go Query(), which slipped through all cases and returned unknown query path.

Looks like it's work in progress though

// TODO This should use the generated tx service Client.
// https://github.com/cosmos/cosmos-sdk/issues/7726
bz, _, err := queryFunc("/cosmos.tx.v1beta1.Service/Simulate", txBytes)

A guide showing how to generate the tx service Client here would be very helpful.

Version

v0.40.1

Steps to Reproduce

  1. Follow the tutorial to setup basic app using cosmos v0.40.1.
  2. Make use of client/tx/tx.go broadcastTx(), which includes the calulateGas() and the error will show up.
  3. Sorry for vague description as our setup is complex, involves 3 repos to reproduce it and they are all private. We did our best to isolate the cause and hope others having same problem find this helpful.

For Admin Use

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

C: gRPCIssues and PRs related to the gRPC service and HTTP gateway.T:Bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions