From 56b686870192f18fbbac0638f8f57bf35f4133b5 Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Wed, 7 Aug 2024 12:32:05 +0200 Subject: [PATCH] fix: typos (#622) * fix typos --- starknet/src/authenticators/stark_sig.cairo | 6 +++--- starknet/src/utils/single_slot_proof.cairo | 2 +- starknet/src/voting_strategies/evm_slot_value.cairo | 4 ++-- starknet/src/voting_strategies/merkle_whitelist.cairo | 2 +- starknet/src/voting_strategies/oz_votes_storage_proof.cairo | 4 ++-- .../oz_votes_trace_208_storage_proof.cairo | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/starknet/src/authenticators/stark_sig.cairo b/starknet/src/authenticators/stark_sig.cairo index 5912f359..80a1bc69 100644 --- a/starknet/src/authenticators/stark_sig.cairo +++ b/starknet/src/authenticators/stark_sig.cairo @@ -10,7 +10,7 @@ trait IStarkSigAuthenticator { /// /// * `signature` - The signature of message digest. /// * `space` - The address of the space contract. - /// * `author` - The starkent address of the author of the proposal. + /// * `author` - The starknet address of the author of the proposal. /// * `metadata_uri` - The URI of the proposal metadata. /// * `execution_strategy` - The execution strategy of the proposal. /// * `user_proposal_validation_params` - The user proposal validation params of the proposal. @@ -35,7 +35,7 @@ trait IStarkSigAuthenticator { /// /// * `signature` - The signature of message digest. /// * `space` - The address of the space contract. - /// * `voter` - The starkent address of the voter. + /// * `voter` - The starknet address of the voter. /// * `proposal_id` - The id of the proposal. /// * `choice` - The choice of the voter. /// * `user_voting_strategies` - The user voting strategies of the voter. @@ -58,7 +58,7 @@ trait IStarkSigAuthenticator { /// /// * `signature` - The signature of message digest. /// * `space` - The address of the space contract. - /// * `author` - The starkent address of the author of the proposal. + /// * `author` - The starknet address of the author of the proposal. /// * `proposal_id` - The id of the proposal. /// * `execution_strategy` - The execution strategy of the proposal. /// * `metadata_uri` - The URI of the proposal metadata. diff --git a/starknet/src/utils/single_slot_proof.cairo b/starknet/src/utils/single_slot_proof.cairo index 3eee718b..3a68345c 100644 --- a/starknet/src/utils/single_slot_proof.cairo +++ b/starknet/src/utils/single_slot_proof.cairo @@ -46,7 +46,7 @@ mod SingleSlotProof { } fn cache_timestamp(ref self: ContractState, timestamp: u32, tree: BinarySearchTree) { - // Maps timestamp to closest L1 block number that occured before the timestamp. If the queried + // Maps timestamp to closest L1 block number that occurred before the timestamp. If the queried // timestamp is less than the earliest timestamp or larger than the latest timestamp in the mapper // then the call will return Option::None and the transaction will revert. let l1_block_number = ITimestampRemappersDispatcher { diff --git a/starknet/src/voting_strategies/evm_slot_value.cairo b/starknet/src/voting_strategies/evm_slot_value.cairo index 5da8f4a6..9c91dd0e 100644 --- a/starknet/src/voting_strategies/evm_slot_value.cairo +++ b/starknet/src/voting_strategies/evm_slot_value.cairo @@ -64,10 +64,10 @@ mod EvmSlotValueVotingStrategy { #[generate_trait] impl SingleSlotProofImpl of SingleSlotProofTrait { - /// Queries the Timestamp Remapper contract for the closest L1 block number that occured before + /// Queries the Timestamp Remapper contract for the closest L1 block number that occurred before /// the given timestamp and then caches the result. If the queried timestamp is less than the earliest /// timestamp or larger than the latest timestamp in the mapper then the transaction will revert. - /// This function should be used to cache a remapped timestamp before its used when calling the + /// This function should be used to cache a remapped timestamp before it's used when calling the /// `get_storage_slot` function with the same timestamp. /// /// # Arguments diff --git a/starknet/src/voting_strategies/merkle_whitelist.cairo b/starknet/src/voting_strategies/merkle_whitelist.cairo index dad7444e..6c8f1c12 100644 --- a/starknet/src/voting_strategies/merkle_whitelist.cairo +++ b/starknet/src/voting_strategies/merkle_whitelist.cairo @@ -9,7 +9,7 @@ mod MerkleWhitelistVotingStrategy { #[abi(embed_v0)] impl MerkleWhitelistImpl of IVotingStrategy { - /// Returns the voting power of a members of a merkle tree. + /// Returns the voting power of a member of a merkle tree. /// The merkle tree root is stored in the strategy parameters (defined by the space owner). /// It is up to the user to supply the leaf and the corresponding proof. /// diff --git a/starknet/src/voting_strategies/oz_votes_storage_proof.cairo b/starknet/src/voting_strategies/oz_votes_storage_proof.cairo index 7076a09a..11bed389 100644 --- a/starknet/src/voting_strategies/oz_votes_storage_proof.cairo +++ b/starknet/src/voting_strategies/oz_votes_storage_proof.cairo @@ -81,10 +81,10 @@ mod OZVotesStorageProofVotingStrategy { #[generate_trait] impl SingleSlotProofImpl of SingleSlotProofTrait { - /// Queries the Timestamp Remapper contract for the closest L1 block number that occured before + /// Queries the Timestamp Remapper contract for the closest L1 block number that occurred before /// the given timestamp and then caches the result. If the queried timestamp is less than the earliest /// timestamp or larger than the latest timestamp in the mapper then the transaction will revert. - /// This function should be used to cache a remapped timestamp before its used when calling the + /// This function should be used to cache a remapped timestamp before it's used when calling the /// `get_storage_slot` function with the same timestamp. /// /// # Arguments diff --git a/starknet/src/voting_strategies/oz_votes_trace_208_storage_proof.cairo b/starknet/src/voting_strategies/oz_votes_trace_208_storage_proof.cairo index 95435278..4b7eefe1 100644 --- a/starknet/src/voting_strategies/oz_votes_trace_208_storage_proof.cairo +++ b/starknet/src/voting_strategies/oz_votes_trace_208_storage_proof.cairo @@ -81,10 +81,10 @@ mod OZVotesTrace208StorageProofVotingStrategy { #[generate_trait] impl SingleSlotProofImpl of SingleSlotProofTrait { - /// Queries the Timestamp Remapper contract for the closest L1 block number that occured before + /// Queries the Timestamp Remapper contract for the closest L1 block number that occurred before /// the given timestamp and then caches the result. If the queried timestamp is less than the earliest /// timestamp or larger than the latest timestamp in the mapper then the transaction will revert. - /// This function should be used to cache a remapped timestamp before its used when calling the + /// This function should be used to cache a remapped timestamp before it's used when calling the /// `get_storage_slot` function with the same timestamp. /// /// # Arguments