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

fix: add missing msg type when parse from event #1196

Merged
merged 15 commits into from
Oct 17, 2023
Prev Previous commit
Next Next commit
add missing EventTypeUpgradeChain EventTypeUpgradeClientProposal
mmsqe committed May 18, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 9ed49e2973e64b3e67586f3e8d6ed440722b52d9
4 changes: 3 additions & 1 deletion relayer/chains/cosmos/event_parser.go
Original file line number Diff line number Diff line change
@@ -121,7 +121,9 @@ func parseIBCMessageFromEvent(
}
case clienttypes.EventTypeCreateClient, clienttypes.EventTypeUpdateClient,
clienttypes.EventTypeUpgradeClient, clienttypes.EventTypeSubmitMisbehaviour,
clienttypes.EventTypeUpdateClientProposal:
clienttypes.EventTypeUpdateClientProposal,
clienttypes.EventTypeUpgradeChain,
clienttypes.EventTypeUpgradeClientProposal:
ci := new(clientInfo)
ci.parseAttrs(log, event.Attributes)
return &ibcMessage{
4 changes: 3 additions & 1 deletion relayer/chains/penumbra/event_parser.go
Original file line number Diff line number Diff line change
@@ -121,7 +121,9 @@ func parseIBCMessageFromEvent(
}
case clienttypes.EventTypeCreateClient, clienttypes.EventTypeUpdateClient,
clienttypes.EventTypeUpgradeClient, clienttypes.EventTypeSubmitMisbehaviour,
clienttypes.EventTypeUpdateClientProposal:
clienttypes.EventTypeUpdateClientProposal,
clienttypes.EventTypeUpgradeChain,
clienttypes.EventTypeUpgradeClientProposal:
ci := new(clientInfo)
ci.parseAttrs(log, event.Attributes)
return &ibcMessage{