From f38520571171d713a985c55596b83d6b399b9742 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wei=C3=9Fer=20Hase?= Date: Wed, 21 Aug 2024 18:44:32 +0200 Subject: [PATCH] fix: typos --- solidity/interfaces/IDataReceiver.sol | 2 +- test/e2e/data-receiver.spec.ts | 4 ++-- test/unit/DataReceiver.spec.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/solidity/interfaces/IDataReceiver.sol b/solidity/interfaces/IDataReceiver.sol index 6e3d417..bc40570 100644 --- a/solidity/interfaces/IDataReceiver.sol +++ b/solidity/interfaces/IDataReceiver.sol @@ -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 diff --git a/test/e2e/data-receiver.spec.ts b/test/e2e/data-receiver.spec.ts index b0e7197..cfec0e9 100644 --- a/test/e2e/data-receiver.spec.ts +++ b/test/e2e/data-receiver.spec.ts @@ -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); @@ -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); diff --git a/test/unit/DataReceiver.spec.ts b/test/unit/DataReceiver.spec.ts index 9f91cf0..ef33d17 100644 --- a/test/unit/DataReceiver.spec.ts +++ b/test/unit/DataReceiver.spec.ts @@ -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); @@ -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);