From 76ef290edc9a2bd95249a6542250fd49a176e720 Mon Sep 17 00:00:00 2001 From: marcello33 Date: Mon, 11 Sep 2023 09:15:23 +0200 Subject: [PATCH] internal/ethapi: use model for check --- internal/ethapi/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 4ab060b7b4..ac5edcdfa1 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -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) }