Skip to content

Commit

Permalink
audit: update comments (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordyRo1 authored Nov 13, 2023
1 parent 5788ef0 commit bc5d267
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/oracle/oracle.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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<felt252>, max_timestamp: u64
Expand Down
2 changes: 1 addition & 1 deletion src/publisher_registry/publisher_registry.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/randomness/randomness.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit bc5d267

Please sign in to comment.