-
Notifications
You must be signed in to change notification settings - Fork 19
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
Correcting types and event parsing for Cosmos SDK 0.50 #271
Conversation
packages/node/src/utils/cosmos.ts
Outdated
let msg: CosmosMessage; | ||
try { | ||
msg = wrapCosmosMsg(block, tx, log.msg_index, registry); | ||
const eventMsgIndex = txEvent.attributes.find( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There doesn't seem to be an example where this would ever happen
Coverage reportCaution Test run failed
Test suite run failedFailed tests: 3/71. Failed suites: 1/8.
Report generated by 🧪jest coverage report action from de0448b |
export type Block = tendermint34.Block | tendermint37.Block | comet38.Block; | ||
export type BlockId = tendermint34.BlockId | tendermint37.BlockId | comet38.BlockId; | ||
export type Validator = tendermint34.Validator | tendermint37.Validator | comet38.Validator; | ||
export type TxData = tendermint34.TxData | tendermint37.TxData | comet38.TxData; | ||
export type TxEvent = tendermint34.Event | tendermint37.Event | comet38.Event; | ||
export type Header = tendermint34.Header | tendermint37.Header | comet38.Header; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌 Nice 😎
8abf227
to
de0448b
Compare
Description
Improve the types to not be specific to a tendermint version.
Update parsing logs/events to work with 0.50 changes
Fixes # (issue)
Type of change
Please delete options that are not relevant.
Checklist