diff --git a/src/interfaces/IHandleRegistry.cairo b/src/interfaces/IHandleRegistry.cairo index 268997f..7397c8f 100644 --- a/src/interfaces/IHandleRegistry.cairo +++ b/src/interfaces/IHandleRegistry.cairo @@ -14,4 +14,4 @@ pub trait IHandleRegistry { // ************************************************************************* fn resolve(self: @TState, handle_id: u256) -> ContractAddress; fn get_handle(self: @TState, profile_address: ContractAddress) -> u256; -} \ No newline at end of file +} diff --git a/src/namespaces/handle_registry.cairo b/src/namespaces/handle_registry.cairo index 0d7753b..54de0f6 100644 --- a/src/namespaces/handle_registry.cairo +++ b/src/namespaces/handle_registry.cairo @@ -30,7 +30,7 @@ mod HandleRegistry { #[derive(Drop, starknet::Event)] struct HandleLinked { - handle_id: u256, + handle_id: u256, profile_address: ContractAddress, caller: ContractAddress, timestamp: u64 @@ -38,7 +38,7 @@ mod HandleRegistry { #[derive(Drop, starknet::Event)] struct HandleUnlinked { - handle_id: u256, + handle_id: u256, profile_address: ContractAddress, caller: ContractAddress, timestamp: u64 @@ -70,12 +70,10 @@ mod HandleRegistry { // ************************************************************************* // GETTERS // ************************************************************************* - fn resolve(self: @ContractState, handle_id: u256) -> ContractAddress { - // TODO + fn resolve(self: @ContractState, handle_id: u256) -> ContractAddress {// TODO } - fn get_handle(self: @ContractState, profile_address: ContractAddress) -> u256 { - // TODO + fn get_handle(self: @ContractState, profile_address: ContractAddress) -> u256 {// TODO } } @@ -83,12 +81,10 @@ mod HandleRegistry { // PRIVATE FUNCTIONS // ************************************************************************* impl Private of PrivateTrait { - fn _link(ref self: ContractState, handle_id: u256, profile_address: ContractAddress) { - // TODO + fn _link(ref self: ContractState, handle_id: u256, profile_address: ContractAddress) {// TODO } - fn _unlink(ref self: ContractState, handle_id: u256, profile_address: ContractAddress) { - // TODO + fn _unlink(ref self: ContractState, handle_id: u256, profile_address: ContractAddress) {// TODO } } -} \ No newline at end of file +} diff --git a/src/namespaces/handles.cairo b/src/namespaces/handles.cairo index 902e0c6..39dd080 100644 --- a/src/namespaces/handles.cairo +++ b/src/namespaces/handles.cairo @@ -185,7 +185,9 @@ mod Handles { // ************************************************************************* #[generate_trait] impl Private of PrivateTrait { - fn _mint_handle(ref self: ContractState, address: ContractAddress, local_name: felt252) -> u256 { + fn _mint_handle( + ref self: ContractState, address: ContractAddress, local_name: felt252 + ) -> u256 { // TODO return 123; }