17 lines
480 B
Plaintext
17 lines
480 B
Plaintext
pub fn add_rule(rule_id: u256, description: String) -> bool {
|
|
require(rule_id > 0, "Invalid rule ID");
|
|
require(description.len() > 0, "Description cannot be empty");
|
|
return true;
|
|
}
|
|
|
|
pub fn check_rule(rule_id: u256, account: Address) -> bool {
|
|
require(rule_id > 0, "Invalid rule ID");
|
|
require(!account.is_zero(), "Invalid account");
|
|
return true;
|
|
}
|
|
|
|
pub fn remove_rule(rule_id: u256) -> bool {
|
|
require(rule_id > 0, "Invalid rule ID");
|
|
return true;
|
|
}
|