1#[macro_export]
2macro_rules! include_abi {
3 ($file:expr $(,)?) => {{
4 match serde_json::from_str::<$crate::core::abi::Contract>(include_str!($file)) {
5 Ok(contract) => contract,
6 Err(err) => panic!("Error loading ABI contract {:?}: {}", $file, err),
7 }
8 }};
9}