Skip to content

Commit

Permalink
fix misbehaviour data decoding
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele committed Feb 2, 2024
1 parent 71b2178 commit 239949c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/commitments/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ impl EthABIEncoder for Message {
match message_type {
MESSAGE_TYPE_UPDATE_CLIENT => Ok(UpdateClientMessage::ethabi_decode(&message)?.into()),
MESSAGE_TYPE_STATE => Ok(VerifyMembershipMessage::ethabi_decode(&message)?.into()),
MESSAGE_TYPE_MISBEHAVIOUR => Ok(MisbehaviourMessage::ethabi_decode(&message)?.into()),
_ => Err(Error::invalid_abi(format!(
"invalid message type: {}",
message_type
Expand Down

0 comments on commit 239949c

Please sign in to comment.