Skip to content
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

[Bug]: simulating a send from a multisig account fails #18476

Closed
1 task done
JulianToledano opened this issue Nov 15, 2023 · 3 comments
Closed
1 task done

[Bug]: simulating a send from a multisig account fails #18476

JulianToledano opened this issue Nov 15, 2023 · 3 comments
Assignees
Labels

Comments

@JulianToledano
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

When sending a tx with a multisig with --gas=auto it fails with error:
rpc error: code = Unknown desc = rpc error: code = Unknown desc = expected *signing.MultiSignatureData, got, *signing.SingleSignatureData With gas wanted: '18446744073709551615' and gas used: '48980' : unknown request

This is because Signaturev2.Data is always populated as SingleSignatureData

sig := signing.SignatureV2{
PubKey: pk,
Data: &signing.SingleSignatureData{
SignMode: f.signMode,
},
Sequence: f.Sequence(),
}

Solution

We could check pubkey type and choose whether to use SingleSignatureData or MultiSignatureData

Cosmos SDK Version

main

How to reproduce?

simd tx bank send $FROM $TO 10000stake --fees 20000stake --gas=auto --chain-id $CHAIN -y

@alexanderbez
Copy link
Contributor

@JulianToledano isn't this a duplicate of #17711?

@JulianToledano
Copy link
Contributor Author

@JulianToledano isn't this a duplicate of #17711?

It is related to that. #17711 points that the key used to simulate isn't the correct but a random one. With the fix in #18472 the error still persist because the signature is always a SingleSignatureData.

I think we can address this on #18472 but wanted to open this issue to make it more clearer.

@JulianToledano
Copy link
Contributor Author

@alexanderbez after taking a second look here you are right. I think this is just a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants