Skip to content

Commit

Permalink
stick with one naming patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
mubarak23 committed Sep 9, 2024
1 parent dbbd55f commit b3fb3da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/account/account.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub mod AccountComponent {
// *************************************************************************
// EXTERNAL FUNCTIONS
// *************************************************************************
#[embeddable_as(AccountImpl)]
#[embeddable_as(AccountInternalImpl)]
pub impl Account<
TContractState, +HasComponent<TContractState>, +Drop<TContractState>
> of IAccount<ComponentState<TContractState>> {
Expand Down
4 changes: 2 additions & 2 deletions src/components/presets/account_preset.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ pub mod AccountPreset {

// Account
#[abi(embed_v0)]
impl AccountImpl = AccountComponent::AccountImpl<ContractState>;
impl AccountImpl = AccountComponent::AccountInternalImpl<ContractState>;

impl AccountInternalImpl = AccountComponent::AccountPrivateImpl<ContractState>;
impl UpgradeableInternalImpl = UpgradeableComponent::Private<ContractState>;
impl UpgradeableInternalImpl = UpgradeableComponent::UpgradeablePrivateImpl<ContractState>;
impl LockableImpl = LockableComponent::LockablePrivateImpl<ContractState>;
impl SignerImpl = SignatoryComponent::SignatoryPrivateImpl<ContractState>;
impl PermissionableImpl = PermissionableComponent::PermissionablePrivateImpl<ContractState>;
Expand Down
2 changes: 1 addition & 1 deletion src/components/signatory/signatory.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub mod SignatoryComponent {
use starknet::{get_caller_address, get_contract_address, ContractAddress};
use token_bound_accounts::components::account::account::AccountComponent;
use token_bound_accounts::components::account::account::AccountComponent::AccountPrivateImpl;
use token_bound_accounts::components::account::account::AccountComponent::AccountImpl;
use token_bound_accounts::components::account::account::AccountComponent::AccountInternalImpl;

use token_bound_accounts::components::permissionable::permissionable::PermissionableComponent;
use token_bound_accounts::components::permissionable::permissionable::PermissionableComponent::PermissionablePrivateImpl;
Expand Down
4 changes: 2 additions & 2 deletions src/components/upgradeable/upgradeable.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ pub mod UpgradeableComponent {
// PRIVATE FUNCTIONS
// *************************************************************************
#[generate_trait]
pub impl Private<
pub impl UpgradeablePrivateImpl<
TContractState,
+HasComponent<TContractState>,
+Drop<TContractState>,
impl Account: AccountComponent::HasComponent<TContractState>
> of PrivateTrait<TContractState> {
> of UpgradeablePrivateTrait<TContractState> {
/// @notice replaces the contract's class hash with `new_class_hash`.
/// Emits an `Upgraded` event.
fn _upgrade(ref self: ComponentState<TContractState>, new_class_hash: ClassHash) {
Expand Down

0 comments on commit b3fb3da

Please sign in to comment.