# modifier_macro Experimental implementation of [function modifier](https://docs.soliditylang.org/en/latest/contracts.html#function-modifiers) on cosmwasm. ## supported - [X] onlyOwner ### usage in `~/cargo/config` ``` [net] git-fetch-with-cli = true ``` in cargo.toml ```toml [dependencies] modifier_macro = "0.1.2" ``` #### onlyOwner ```rust use modifier_macro::modifier; #[modifier(onlyOwner)] fn main() { println!("Hello, world!"); } ```