Macro ink::selector_bytes

selector_bytes!() { /* proc-macro */ }
Expand description

Computes the ink! selector of the string and expands into its byte representation.

Note

The computation takes place at compilation time of the crate.

Example

assert_eq!(selector_bytes!("hello"), [50, 77, 207, 2],);