Closed
Description
opened on Jan 25, 2021
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
- Follow the tutorial to setup basic app using cosmos v0.40.1.
- Make use of client/tx/tx.go broadcastTx(), which includes the calulateGas() and the error will show up.
- 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