macro_rules! indexer_id {
() => { ... };
($value:tt) => { ... };
}
Expand description
Converts a sequence of string literals containing hex-encoded data into a new IndexerId
at compile time.
To create an IndexerId
from a string literal (no 0x
prefix) at compile time:
const INDEXER_ID: IndexerId = indexer_id!("0002c67268fb8c8917f36f865a0cbdf5292fa68d");
If no argument is provided, the macro will create an IndexerId
with the zero address:
const INDEXER_ID: IndexerId = indexer_id!();
assert_eq!(INDEXER_ID, Address::ZERO);