-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
SignBytes calculation differs per msg type #3336
Comments
That's a bug, great catch.
We ought to review this across all of our modules. |
$ gaiacli tx send --from=foo --to=cosmos103ee72v6m096y2xq3rrxv5uex7pawh5y6uykt4 --amount=1stake --generate-only
{"type":"auth/StdTx","value":{"msg":[{"type":"cosmos-sdk/Send","value":{"inputs":[{"address":"cosmos1570v2fq3twt0f0x02vhxpuzc9jc4yl30q2qned","coins":[{"denom":"stake","amount":"1"}]}],"outputs":[{"address":"cosmos103ee72v6m096y2xq3rrxv5uex7pawh5y6uykt4","coins":[{"denom":"stake","amount":"1"}]}]}}],"fee":{"amount":null,"gas":"200000"},"signatures":null,"memo":""}}
|
It's not about the |
Is it because |
Summary of Bug
Serializing
bank.MsgSend
andstaking.Delegation
differs. Inbank.MsgSend
the msg is serialized withouttype
andvalue
:For
staking.Delegation
we need to leavetype
andvalue
in:Steps to Reproduce
For Admin Use
The text was updated successfully, but these errors were encountered: