1 2 3 4 5 6 7 8 9 10
#[macro_export] macro_rules! use_contract { ($module: ident, $name: expr, $path: expr) => { pub mod $module { #[derive(EthabiContract)] #[ethabi_contract_options(name = $name, path = $path)] struct _Dummy; } } }
1 2 3 4 5 6 7 8 9 10
#[macro_export] macro_rules! use_contract { ($module: ident, $name: expr, $path: expr) => { pub mod $module { #[derive(EthabiContract)] #[ethabi_contract_options(name = $name, path = $path)] struct _Dummy; } } }