M-05-message-invalid-selector.rs 377 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
use ink_lang as ink;

#[ink::contract]
mod message_invalid_selector {
    #[ink(storage)]
    pub struct MessageInvalidSelector {}

    impl MessageInvalidSelector {
        #[ink(constructor)]
        pub fn constructor() -> Self {
            Self {}
        }

14
        #[ink(message, selector = "0xC0DECAFE")]
15
        pub fn invalid_selector(&self) {}
16
17
18
19
    }
}

fn main() {}