diff --git a/model/src/msg_handler.rs b/model/src/msg_handler.rs index d01a0341c643d64f16f90e24bb290012e925fdf8..cc76d13f74f978b446699d4533254b0963f3d6a3 100644 --- a/model/src/msg_handler.rs +++ b/model/src/msg_handler.rs @@ -69,7 +69,7 @@ impl CallData { } /// A hash to identify a called function. -#[derive(Copy, Clone, PartialEq, Eq)] +#[derive(Copy, Clone, PartialEq, Eq, Decode)] pub struct MessageHandlerSelector(u32); impl MessageHandlerSelector { @@ -102,7 +102,7 @@ where { /// Returns the associated handler selector. pub const fn selector() -> MessageHandlerSelector { - MessageHandlerSelector(0x0) // TODO: Specify and implement behaviour. + ::ID // Should produce a hash out of a byte sequence // that contains signatures of the following parts: