From e780e5c1972ae091262ae4f3ea28ed09effdd5cf Mon Sep 17 00:00:00 2001 From: FelixFan1992 Date: Fri, 2 Aug 2024 16:39:18 -0400 Subject: [PATCH] update --- contracts/src/v0.8/vrf/dev/OptimismL1Fees.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/src/v0.8/vrf/dev/OptimismL1Fees.sol b/contracts/src/v0.8/vrf/dev/OptimismL1Fees.sol index 999e18134bb..875ef98756f 100644 --- a/contracts/src/v0.8/vrf/dev/OptimismL1Fees.sol +++ b/contracts/src/v0.8/vrf/dev/OptimismL1Fees.sol @@ -70,12 +70,12 @@ abstract contract OptimismL1Fees is ConfirmedOwner { function _getL1CostWeiForCalldataSize(uint256 calldataSizeBytes) internal view returns (uint256) { uint8 l1FeeCalculationMode = s_l1FeeCalculationMode; if (l1FeeCalculationMode == L1_CALLDATA_GAS_COST_MODE) { - // estimate based on unsigned fully RLP-encoded transaction size so we have to account for paddding bytes as well + // estimate based on unsigned fully RLP-encoded transaction size so we have to account for padding bytes as well return (s_l1FeeCoefficient * _calculateOptimismL1DataFee(calldataSizeBytes + L1_UNSIGNED_RLP_ENC_TX_DATA_BYTES_SIZE)) / 100; } else if (l1FeeCalculationMode == L1_GAS_FEES_UPPER_BOUND_MODE) { - // getL1FeeUpperBound expects unsigned fully RLP-encoded transaction size so we have to account for paddding bytes as well + // getL1FeeUpperBound expects unsigned fully RLP-encoded transaction size so we have to account for padding bytes as well return (s_l1FeeCoefficient * OVM_GASPRICEORACLE.getL1FeeUpperBound(calldataSizeBytes + L1_UNSIGNED_RLP_ENC_TX_DATA_BYTES_SIZE)) / 100;