-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func CalculateGas not support multisigaddress ? #8821
Comments
Can you share more info about the parameters you have passed in? Specifically the |
tx.Factory
sdk.Msg
|
The issue is that CalculateGas doesn't handle multisigs right now, it hardcodes SingleSignature: Lines 260 to 265 in 1fa2c22
To be honest, I think the As an alternative, users should use the Simulate gRPC endpoint to get gas, and to create a multisig tx either 1/ use the CLI or 2/ manually add Multisig UX (CLI and programmatic) improvement can be tracked in #8141. @tpkeeper are you okay with the altnernatvie I proposed for getting gas for multisigs? |
just set gas limit very large like 50000000 |
thanks ,i will try it and give a feed back
thanks ,i will try it and give you a feed back |
Summary of Bug
func CalculateGas(
queryFunc func(string, []byte) ([]byte, int64, error), txf Factory, msgs ...sdk.Msg,
) (tx.SimulateResponse, uint64, error)
try send from multisig address with auto cal gas,got this err:
expected *signing.MultiSignatureData, got, *signing.SingleSignatureData: invalid request
github.com/cosmos/cosmos-sdk/client.Context.queryABCI
/Users/tpkeeper/go/pkg/mod/github.com/cosmos/[email protected]/client/query.go:82
github.com/cosmos/cosmos-sdk/client.Context.query
/Users/tpkeeper/go/pkg/mod/github.com/cosmos/[email protected]/client/query.go:97
github.com/cosmos/cosmos-sdk/client.Context.QueryWithData
/Users/tpkeeper/go/pkg/mod/github.com/cosmos/[email protected]/client/query.go:39
github.com/cosmos/cosmos-sdk/client/tx.CalculateGas
/Users/tpkeeper/go/pkg/mod/github.com/cosmos/[email protected]/client/tx/tx.go:291
Version
v0.41.4
Steps to Reproduce
send from multisigaddress with auto gas
For Admin Use
The text was updated successfully, but these errors were encountered: