Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
wei3erHase committed Aug 21, 2024
1 parent 84d1dfe commit f385205
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion solidity/interfaces/IDataReceiver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ interface IDataReceiver is IGovernable {
uint24 _poolNonce
) external;

/// @notice Allows any address to attemt to insert cached observations
/// @notice Allows any address to attempt to insert cached observations
/// @param _poolSalt Identifier of the pool to fetch
/// @param _maxObservations Maximum number of observations to process
/// @dev Use _maxObservations = 0 to process all possible cached observations
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/data-receiver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ describe('@skip-on-coverage DataReceiver.sol', () => {
// NOTE: dataReceiver should be at poolNonce == nonce by now (with nonce, nonce+1 & nonce+2 in cache)
});

it('should all the observations when called without max', async () => {
it('should add all cached observations when called without max', async () => {
tx = await dataReceiver.syncObservations(salt, 0);

await expect(tx).to.emit(dataReceiver, 'ObservationsAdded').withArgs(salt, nonce, caller);
Expand All @@ -223,7 +223,7 @@ describe('@skip-on-coverage DataReceiver.sol', () => {
.withArgs(salt, nonce + 2, caller);
});

it('should all observations limited by max argument', async () => {
it('should add cached observations limited by max argument', async () => {
tx = await dataReceiver.syncObservations(salt, 2);

await expect(tx).to.emit(dataReceiver, 'ObservationsAdded').withArgs(salt, nonce, caller);
Expand Down
4 changes: 2 additions & 2 deletions test/unit/DataReceiver.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ describe('DataReceiver.sol', () => {
await expect(dataReceiver.syncObservations(randomSalt, 0)).to.be.revertedWith('ObservationsNotWritable()');
});

it('should all observations limited by max argument', async () => {
it('should add cached observations limited by max argument', async () => {
tx = await dataReceiver.syncObservations(randomSalt, 2);

expect(oracleSidechain.write).to.have.been.calledWith(observationsDataA, randomNonce);
Expand All @@ -338,7 +338,7 @@ describe('DataReceiver.sol', () => {
.withArgs(randomSalt, randomNonce + 1, caller);
});

it('should all the observations when called without max', async () => {
it('should add all cached observations when called without max', async () => {
tx = await dataReceiver.syncObservations(randomSalt, 0);

expect(oracleSidechain.write).to.have.been.calledWith(observationsDataA, randomNonce);
Expand Down

0 comments on commit f385205

Please sign in to comment.