-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Description
Summary of Bug
Serializing bank.MsgSend and staking.Delegation differs. In bank.MsgSend the msg is serialized without type and value:
{"account_number":"0","chain_id":"local-testnet","fee":{"amount":[],"gas":"500000"},"memo":"","msgs":[{"inputs":[{"address":"cosmos1sn0f0phpv9rzkf0956uwu5ja88ramcv7u2dx2y","coins":[{"amount":"10","denom":"photino"}]}],"outputs":[{"address":"cosmos1sn0f0phpv9rzkf0956uwu5ja88ramcv7u2dx2y","coins":[{"amount":"10","denom":"photino"}]}]}],"sequence":"4"}
For staking.Delegation we need to leave type and value in:
{"account_number":"0","chain_id":"local-testnet","fee":{"amount":[],"gas":"500000"},"memo":"","msgs":[{"type":"cosmos-sdk/MsgDelegate","value":{"delegation":{"amount":"10","denom":"stake"},"delegator_addr":"cosmos1sn0f0phpv9rzkf0956uwu5ja88ramcv7u2dx2y","validator_addr":"cosmosvaloper1sn0f0phpv9rzkf0956uwu5ja88ramcv7e7enxh"}}],"sequence":"3"}
Steps to Reproduce
For Admin Use
- Not duplicate issue
- Appropriate labels applied
- Appropriate contributors tagged
- Contributor assigned/self-assigned
Reactions are currently unavailable