Skip to content

Commit

Permalink
fix bug affecting gas prices and batchL2Data output (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexoscott authored and mandrigin committed Aug 15, 2024
1 parent cac5d9a commit 834d563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/rpcdaemon/commands/eth_receipts_zkevm.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ func (api *APIImpl) addEffectiveGasPercentage(fields map[string]interface{}, tx
if err != nil {
return nil, err
}
fields["effectiveGasPrice"] = core.CalculateEffectiveGas(txn.GetPrice(), effectiveGasPricePercentage)
fields["effectiveGasPrice"] = core.CalculateEffectiveGas(txn.GetPrice().Clone(), effectiveGasPricePercentage)
return fields, nil
}

0 comments on commit 834d563

Please sign in to comment.