Skip to content

Commit 4221c4d

Browse files
authored
just to trigger the deployment (#713)
1 parent 1af046f commit 4221c4d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contracts/access_control/traits.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ use ink_env::{
55

66
use crate::{access_control::HAS_ROLE_SELECTOR, roles::Role};
77

8+
/// Convenience trait for contracts that have methods that need to be under access control
9+
///
10+
/// Such contracts should implement this trait and pass their error enum as associated type:
11+
/// impl AccessControlled for MyContract {
12+
/// type ContractError = MyContractError;
13+
/// }
814
pub trait AccessControlled {
915
type ContractError;
1016

0 commit comments

Comments
 (0)