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 Aug 14, 2024
1 parent fe54243 commit 042a3f1
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 042a3f1

Please sign in to comment.