internal/ethapi: use model for check

This commit is contained in:
marcello33 2023-09-11 09:15:23 +02:00
parent eab7c9de0d
commit 76ef290edc

View file

@ -2105,7 +2105,7 @@ func (s *TransactionAPI) GetTransactionReceipt(ctx context.Context, hash common.
"effectiveGasPrice": (*hexutil.Big)(receipt.EffectiveGasPrice),
}
if fields["effectiveGasPrice"] == nil {
if receipt.EffectiveGasPrice == nil {
fields["effectiveGasPrice"] = new(hexutil.Big)
}