diff --git a/src/events.rs b/src/events.rs index dab453a..8c96123 100644 --- a/src/events.rs +++ b/src/events.rs @@ -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); diff --git a/src/lib.rs b/src/lib.rs index b989e95..41af716 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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) { @@ -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 diff --git a/src/requirements.rs b/src/requirements.rs index dfae9db..a2e14c5 100644 --- a/src/requirements.rs +++ b/src/requirements.rs @@ -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, @@ -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)