Skip to content

Commit

Permalink
Use "max", not "min"
Browse files Browse the repository at this point in the history
  • Loading branch information
forshtat committed Nov 2, 2023
1 parent dd506d5 commit 8933e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EIPS/eip-000.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function calculateItemColdAccessRefund (
for (let i = 0; i < sortedAccessDetails.length; i++) {
const accessor = sortedAccessDetails[i]
const refund = refunds.get(accessor.sender) ?? { refundFromBurn: 0n, refundFromCoinbase: 0n }
const adjustedAccessGasCost = Math.min(MIN_ACCESS_LIST_ENTRY_COST, parseInt(accessGasCost) * refundPercent)
const adjustedAccessGasCost = Math.max(MIN_ACCESS_LIST_ENTRY_COST, parseInt(accessGasCost) * refundPercent)
refund.refundFromBurn += BigInt(adjustedAccessGasCost * parseInt(baseFeePerGas))
refund.refundFromCoinbase += BigInt(refundsFromCoinbase[i])
refunds.set(accessor.sender, refund)
Expand Down

0 comments on commit 8933e1a

Please sign in to comment.