From bc5d26752f0bf636b681f25a64ad885fc18aa06b Mon Sep 17 00:00:00 2001 From: Jordy Romuald <87231934+JordyRo1@users.noreply.github.com> Date: Mon, 13 Nov 2023 15:31:07 +0100 Subject: [PATCH] audit: update comments (#75) --- src/oracle/oracle.cairo | 2 +- src/publisher_registry/publisher_registry.cairo | 2 +- src/randomness/randomness.cairo | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/oracle/oracle.cairo b/src/oracle/oracle.cairo index 32df3462..f94aeed1 100644 --- a/src/oracle/oracle.cairo +++ b/src/oracle/oracle.cairo @@ -2012,7 +2012,7 @@ mod Oracle { // @param data_type: an enum of DataType (e.g : DataType::SpotEntry(ASSET_ID) or DataType::FutureEntry((ASSSET_ID, expiration_timestamp))) // @param sources: a span of sources to consider // @param max_timestamp: max timestamp wanted - // @returns a span of PossibleEntries + // @returns an array of PossibleEntries // @returns the length of the span fn get_all_entries( self: @ContractState, data_type: DataType, sources: Span, max_timestamp: u64 diff --git a/src/publisher_registry/publisher_registry.cairo b/src/publisher_registry/publisher_registry.cairo index 846d1d68..418f3cb7 100644 --- a/src/publisher_registry/publisher_registry.cairo +++ b/src/publisher_registry/publisher_registry.cairo @@ -279,7 +279,7 @@ mod PublisherRegistry { } // @notice get the publisher address - // @param the puublisher from which we want to retrieve the address + // @param the publisher from which we want to retrieve the address // @returns the address associated to the given publisher fn get_publisher_address(self: @ContractState, publisher: felt252) -> ContractAddress { self.publisher_address_storage.read(publisher) diff --git a/src/randomness/randomness.cairo b/src/randomness/randomness.cairo index 5e2e481a..cf8ba92d 100644 --- a/src/randomness/randomness.cairo +++ b/src/randomness/randomness.cairo @@ -203,7 +203,7 @@ mod Randomness { num_words, ); let stored_hash_ = self.request_hash.read((caller_address, request_id)); - assert(_hashed_value == stored_hash_, 'invalid request owner'); + assert(_hashed_value == stored_hash_, 'invalid request configuration'); assert(requestor_address == caller_address, 'invalid request owner'); self .emit(