From 5384a3d75c8e105199aa3ced846b06c6d1c4ce05 Mon Sep 17 00:00:00 2001 From: mubarak23 Date: Mon, 26 Aug 2024 11:01:46 +0100 Subject: [PATCH] format code --- src/components/presets/account_preset.cairo | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/presets/account_preset.cairo b/src/components/presets/account_preset.cairo index 765d282..1155af6 100644 --- a/src/components/presets/account_preset.cairo +++ b/src/components/presets/account_preset.cairo @@ -54,8 +54,8 @@ pub mod AccountPreset { UpgradeableEvent: UpgradeableComponent::Event, #[flat] LockableEvent: LockableComponent::Event, - #[flat] - PermissionableEvent: PermissionableComponent::Event + #[flat] + PermissionableEvent: PermissionableComponent::Event } // ************************************************************************* @@ -108,12 +108,14 @@ pub mod AccountPreset { // ************************************************************************* // PERMISSIONABLE IMPL // ************************************************************************* - #[abi(embed_v0)] + #[abi(embed_v0)] impl Permissionable of IPermissionable { - fn set_permission(ref self: ContractState, permission_addresses: Array, - permissions: Array) { - self.permissionable.set_permission( permission_addresses, - permissions) + fn set_permission( + ref self: ContractState, + permission_addresses: Array, + permissions: Array + ) { + self.permissionable.set_permission(permission_addresses, permissions) } fn has_permission(self: @ContractState, permission_addresses: ContractAddress) -> bool { self.permissionable.has_permission(permission_addresses)