Skip to content

Commit

Permalink
fixes some comment and naming typos
Browse files Browse the repository at this point in the history
  • Loading branch information
newbreedofgeek committed Feb 18, 2023
1 parent ac139be commit c25c5d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ pub trait EventsModule {
fn privileged_address_added_event(&self, #[indexed] address: &ManagedAddress);

// Emitted whenever the owner removes a privileged address
#[event("privledgedAddressRemoved")]
#[event("privilegedAddressRemoved")]
fn privileged_address_removed_event(&self, #[indexed] address: &ManagedAddress);

// Emitted whenever the owner sets the Data NFT marketplace contract address
// Emitted whenever the owner sets the address (e.g. Data NFT marketplace contract)
#[event("depositorAddressAdded")]
fn depositor_address_added_event(&self, #[indexed] address: &ManagedAddress);

// Emitted whenever the owner clears the Data NFT marketplace contract address
// Emitted whenever the owner clears the address (e.g. Data NFT marketplace contract)
#[event("depositorAddressRemoved")]
fn depositor_address_removed_event(&self, #[indexed] address: &ManagedAddress);

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub trait ClaimsContract:
self.harvest_paused_event(&caller);
}

// Endpoint avbailable for the owner of the smart contract to resume claim harvesting. Cannot be called while harvesting is already unpaused.
// Endpoint available for the owner of the smart contract to resume claim harvesting. Cannot be called while harvesting is already unpaused.
#[only_owner]
#[endpoint(unpause)]
fn unpause(&self) {
Expand Down Expand Up @@ -215,7 +215,7 @@ pub trait ClaimsContract:
) {
self.require_claim_token_is_set();

// Panics if the user tries to add more than 200 claims per operation. Implemented in order to ensure
// Panics if the user tries to add more than 200 claims per operation.
self.require_number_of_claims_in_bulk_is_valid(&claims.len());

// Initialize the sum of claims to be removed to zero
Expand Down
4 changes: 2 additions & 2 deletions src/requirements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub trait RequirementsModule: storage::StorageModule {
require!(current_claim >= amount, ERR_MORE_THAN_CLAIM);
}

// Checks whether the number of claims added or removed is smaller than 200. Implemented in order to ensure no call will fail due to consuming more than the maxium gas allowed per transaciton on Elrond.
// Checks whether the number of claims added or removed is smaller than 200. Implemented in order to ensure no call will fail due to consuming more than the maximum gas allowed per transaction on Elrond.
fn require_number_of_claims_in_bulk_is_valid(&self, number_of_claims: &usize) {
require!(
number_of_claims <= &MAX_NUMBER_OF_CLAIMS_PER_OPERATION,
Expand All @@ -43,7 +43,7 @@ pub trait RequirementsModule: storage::StorageModule {
);
}

// Checks whether the address has the Data NFTR Marketplace Special Rights
// Checks whether the address has the Data NFT Marketplace Special Rights
fn require_address_has_deposit_rights(&self, address: &ManagedAddress) {
require!(
self.privileged_addresses().contains(address)
Expand Down

0 comments on commit c25c5d3

Please sign in to comment.