From f13724a7364f4658de44be704525c5c8275b4af9 Mon Sep 17 00:00:00 2001 From: "A.L." Date: Mon, 8 Jul 2024 00:45:28 +0200 Subject: [PATCH] docs: update comment --- src/ReservoirPriceOracle.sol | 2 +- test/mock/GasBuster.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ReservoirPriceOracle.sol b/src/ReservoirPriceOracle.sol index a4ee409..3111a07 100644 --- a/src/ReservoirPriceOracle.sol +++ b/src/ReservoirPriceOracle.sol @@ -237,7 +237,7 @@ contract ReservoirPriceOracle is IPriceOracle, IReservoirPriceOracle, Owned(msg. lPayoutAmt = block.basefee * rewardGasAmount; } - // does not revert even if transfer fails + // does not revert in any circumstance assembly ("memory-safe") { let result := call(gas(), aRecipient, lPayoutAmt, codesize(), 0x00, codesize(), 0x00) } diff --git a/test/mock/GasBuster.sol b/test/mock/GasBuster.sol index 930c762..a8d8834 100644 --- a/test/mock/GasBuster.sol +++ b/test/mock/GasBuster.sol @@ -4,7 +4,7 @@ pragma solidity ^0.8.0; contract GasBuster { // Allow the contract to receive ETH receive() external payable { - while(true) { + while (true) { // This loop will continue until all gas is consumed } }