@@ -7,18 +7,20 @@ pub mod AccountV3 {
77 // *************************************************************************
88 // IMPORTS
99 // *************************************************************************
10- use starknet :: {ContractAddress , get_caller_address, get_tx_info, ClassHash , account :: Call };
1110 use openzeppelin_introspection :: src5 :: SRC5Component ;
12-
11+ use starknet :: account :: Call ;
12+ use starknet :: {ClassHash , ContractAddress , get_caller_address, get_tx_info};
1313 use token_bound_accounts :: components :: account :: account :: AccountComponent ;
14- use token_bound_accounts :: components :: upgradeable :: upgradeable :: UpgradeableComponent ;
1514 use token_bound_accounts :: components :: lockable :: lockable :: LockableComponent ;
16- use token_bound_accounts :: components :: signatory :: signatory :: SignatoryComponent ;
1715 use token_bound_accounts :: components :: permissionable :: permissionable :: PermissionableComponent ;
18- use token_bound_accounts :: interfaces :: {
19- IUpgradeable :: IUpgradeable , IExecutable :: IExecutable , ILockable :: ILockable ,
20- ISignatory :: ISignatory , IPermissionable :: IPermissionable , IAccountV3 :: IAccountV3
21- };
16+ use token_bound_accounts :: components :: signatory :: signatory :: SignatoryComponent ;
17+ use token_bound_accounts :: components :: upgradeable :: upgradeable :: UpgradeableComponent ;
18+ use token_bound_accounts :: interfaces :: IAccountV3 :: IAccountV3 ;
19+ use token_bound_accounts :: interfaces :: IExecutable :: IExecutable ;
20+ use token_bound_accounts :: interfaces :: ILockable :: ILockable ;
21+ use token_bound_accounts :: interfaces :: IPermissionable :: IPermissionable ;
22+ use token_bound_accounts :: interfaces :: ISignatory :: ISignatory ;
23+ use token_bound_accounts :: interfaces :: IUpgradeable :: IUpgradeable ;
2224
2325 // *************************************************************************
2426 // COMPONENTS
@@ -57,7 +59,7 @@ pub mod AccountV3 {
5759 #[substorage(v0)]
5860 permissionable : PermissionableComponent :: Storage ,
5961 #[substorage(v0)]
60- src5 : SRC5Component :: Storage
62+ src5 : SRC5Component :: Storage ,
6163 }
6264
6365 // *************************************************************************
@@ -77,7 +79,7 @@ pub mod AccountV3 {
7779 #[flat]
7880 PermissionableEvent : PermissionableComponent :: Event ,
7981 #[flat]
80- SRC5Event : SRC5Component :: Event
82+ SRC5Event : SRC5Component :: Event ,
8183 }
8284
8385 // *************************************************************************
@@ -98,7 +100,7 @@ pub mod AccountV3 {
98100 token_id : u256 ,
99101 registry : ContractAddress ,
100102 implementation_hash : felt252 ,
101- salt : felt252
103+ salt : felt252 ,
102104 ) {
103105 self . account. initializer (token_contract , token_id , registry , implementation_hash , salt );
104106 }
@@ -119,7 +121,7 @@ pub mod AccountV3 {
119121 operator : ContractAddress ,
120122 from : ContractAddress ,
121123 token_id : u256 ,
122- data : Span <felt252 >
124+ data : Span <felt252 >,
123125 ) -> felt252 {
124126 let (_token_contract , _token_id , _chain_id ) = self . account. token ();
125127 let tx_info = get_tx_info (). unbox ();
@@ -144,7 +146,7 @@ pub mod AccountV3 {
144146 operator : ContractAddress ,
145147 from : ContractAddress ,
146148 token_id : u256 ,
147- data : Span <felt252 >
149+ data : Span <felt252 >,
148150 ) -> felt252 {
149151 self . on_erc721_received (operator , from , token_id , data )
150152 }
@@ -171,7 +173,7 @@ pub mod AccountV3 {
171173 /// @param hash The message hash
172174 /// @param signature The signature to be validated
173175 fn is_valid_signature (
174- self : @ ContractState , hash : felt252 , signature : Span <felt252 >
176+ self : @ ContractState , hash : felt252 , signature : Span <felt252 >,
175177 ) -> felt252 {
176178 self . signatory. _is_valid_signature (hash , signature )
177179 }
@@ -253,7 +255,7 @@ pub mod AccountV3 {
253255 fn set_permission (
254256 ref self : ContractState ,
255257 permissioned_addresses : Array <ContractAddress >,
256- permissions : Array <bool >
258+ permissions : Array <bool >,
257259 ) {
258260 // set permissions
259261 self . permissionable. _set_permission (permissioned_addresses , permissions )
@@ -263,7 +265,7 @@ pub mod AccountV3 {
263265 // @param owner tokenbound account owner
264266 // @param permissioned_address address to check permission for
265267 fn has_permission (
266- self : @ ContractState , owner : ContractAddress , permissioned_address : ContractAddress
268+ self : @ ContractState , owner : ContractAddress , permissioned_address : ContractAddress ,
267269 ) -> bool {
268270 self . permissionable. _has_permission (owner , permissioned_address )
269271 }
0 commit comments