Skip to content

Commit

Permalink
NewErrorAcknowledgement with non-determinsitic error message (#591)
Browse files Browse the repository at this point in the history
do not pass non-determ error
  • Loading branch information
mpoke authored Dec 13, 2022
1 parent 62bf6e8 commit 0156424
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/ccv/consumer/ibc_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (am AppModule) OnRecvPacket(
data ccv.ValidatorSetChangePacketData
)
if err := ccv.ModuleCdc.UnmarshalJSON(packet.GetData(), &data); err != nil {
errAck := channeltypes.NewErrorAcknowledgement(fmt.Sprintf("cannot unmarshal CCV packet data: %s", err.Error()))
errAck := channeltypes.NewErrorAcknowledgement("cannot unmarshal CCV packet data")
ack = &errAck
} else {
ack = am.keeper.OnRecvVSCPacket(ctx, packet, data)
Expand Down
2 changes: 1 addition & 1 deletion x/ccv/provider/ibc_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (am AppModule) OnRecvPacket(
// handle SlashPacket
ack = am.keeper.OnRecvSlashPacket(ctx, packet, slashData)
} else {
errAck := channeltypes.NewErrorAcknowledgement(fmt.Sprintf("cannot unmarshal CCV packet data: %s", err.Error()))
errAck := channeltypes.NewErrorAcknowledgement("cannot unmarshal CCV packet data")
ack = &errAck
}

Expand Down

0 comments on commit 0156424

Please sign in to comment.