Closed mooori closed 1 year ago
Currently passing the role_type argument into #[access_control] requires quotes around Role:
role_type
#[access_control]
Role
#[access_control(role_type = "Role")] #[near_bindgen] #[derive(Default, BorshDeserialize, BorshSerialize)] pub struct Contract { /* ... */ }
Requiring quotes around the identifier looks not so nice.
After this update the quotes can be omitted and the syntax changes to:
#[access_control(role_type(Role))]
Currently passing the
role_type
argument into#[access_control]
requires quotes aroundRole
:Requiring quotes around the identifier looks not so nice.
After this update the quotes can be omitted and the syntax changes to: