Skip to content

Commit

Permalink
fix: typos (#622)
Browse files Browse the repository at this point in the history
* fix typos
  • Loading branch information
omahs authored Aug 7, 2024
1 parent 1b748c6 commit 56b6868
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions starknet/src/authenticators/stark_sig.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ trait IStarkSigAuthenticator<TContractState> {
///
/// * `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.
Expand All @@ -35,7 +35,7 @@ trait IStarkSigAuthenticator<TContractState> {
///
/// * `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.
Expand All @@ -58,7 +58,7 @@ trait IStarkSigAuthenticator<TContractState> {
///
/// * `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.
Expand Down
2 changes: 1 addition & 1 deletion starknet/src/utils/single_slot_proof.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions starknet/src/voting_strategies/evm_slot_value.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion starknet/src/voting_strategies/merkle_whitelist.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mod MerkleWhitelistVotingStrategy {

#[abi(embed_v0)]
impl MerkleWhitelistImpl of IVotingStrategy<ContractState> {
/// 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.
///
Expand Down
4 changes: 2 additions & 2 deletions starknet/src/voting_strategies/oz_votes_storage_proof.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 56b6868

Please sign in to comment.