Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
mubarak23 committed Aug 26, 2024
1 parent 2839c5e commit 5384a3d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/components/presets/account_preset.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ pub mod AccountPreset {
UpgradeableEvent: UpgradeableComponent::Event,
#[flat]
LockableEvent: LockableComponent::Event,
#[flat]
PermissionableEvent: PermissionableComponent::Event
#[flat]
PermissionableEvent: PermissionableComponent::Event
}

// *************************************************************************
Expand Down Expand Up @@ -108,12 +108,14 @@ pub mod AccountPreset {
// *************************************************************************
// PERMISSIONABLE IMPL
// *************************************************************************
#[abi(embed_v0)]
#[abi(embed_v0)]
impl Permissionable of IPermissionable<ContractState> {
fn set_permission(ref self: ContractState, permission_addresses: Array<ContractAddress>,
permissions: Array<bool>) {
self.permissionable.set_permission( permission_addresses,
permissions)
fn set_permission(
ref self: ContractState,
permission_addresses: Array<ContractAddress>,
permissions: Array<bool>
) {
self.permissionable.set_permission(permission_addresses, permissions)
}
fn has_permission(self: @ContractState, permission_addresses: ContractAddress) -> bool {
self.permissionable.has_permission(permission_addresses)
Expand Down

0 comments on commit 5384a3d

Please sign in to comment.