Skip to content

Commit

Permalink
Merge branch 'main' into siliev/l2-funding-deployment-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 authored Sep 21, 2023
2 parents 89487ec + 67c7597 commit d89ad17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/enclave/gas/gas.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (gp *ObscuroGasPool) ForTransaction(tx *types.Transaction) (*gethcore.GasPo
// CalculateL1GasUsed - calculates the gas cost of having a transaction on the l1.
func CalculateL1GasUsed(data []byte, overhead *big.Int) *big.Int {
reducedTxSize := uint64(len(data))
reducedTxSize = (reducedTxSize * 75) / 100
reducedTxSize = (reducedTxSize * 90) / 100
reducedTxSize = reducedTxSize * params.TxDataNonZeroGasEIP2028

l1Gas := new(big.Int).SetUint64(reducedTxSize)
Expand Down

0 comments on commit d89ad17

Please sign in to comment.