Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixFan1992 committed Aug 2, 2024
1 parent 913f40d commit e780e5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/src/v0.8/vrf/dev/OptimismL1Fees.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e780e5c

Please sign in to comment.