Crates.io | address-literal |
lib.rs | address-literal |
version | 1.2.4 |
source | src |
created_at | 2021-07-04 03:04:33.691778 |
updated_at | 2023-10-11 14:27:46.344518 |
description | Procedural macro for converting Address(H160) literals to Address(H160) at compile time. |
homepage | |
repository | |
max_upload_size | |
id | 418427 |
size | 2,511 |
This crate simplifies the initialization of const variable by using addr!()
macro. It expects a string literal. See following example:
use address_literal::addr;
const BOT: H160 = addr!("0x0000000279be4c78d026d348651e26f3fcc8cf90");