From 47a0cdd7243e5a7b34ebd0747f469fb065d7089d Mon Sep 17 00:00:00 2001 From: yerke26 Date: Thu, 7 Nov 2024 16:53:25 +0600 Subject: [PATCH] fix tests --- src/Nethermind/Nethermind.JsonRpc/Data/ReceiptForRpc.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Nethermind/Nethermind.JsonRpc/Data/ReceiptForRpc.cs b/src/Nethermind/Nethermind.JsonRpc/Data/ReceiptForRpc.cs index 694f0f1d77a..48ff989ecb5 100644 --- a/src/Nethermind/Nethermind.JsonRpc/Data/ReceiptForRpc.cs +++ b/src/Nethermind/Nethermind.JsonRpc/Data/ReceiptForRpc.cs @@ -45,8 +45,10 @@ public ReceiptForRpc(Hash256 txHash, TxReceipt receipt, TxGasInfo gasInfo, int l public long CumulativeGasUsed { get; set; } public long GasUsed { get; set; } + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public ulong? BlobGasUsed { get; set; } + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public UInt256? BlobGasPrice { get; set; } public UInt256? EffectiveGasPrice { get; set; } @@ -55,6 +57,7 @@ public ReceiptForRpc(Hash256 txHash, TxReceipt receipt, TxGasInfo gasInfo, int l [JsonIgnore(Condition = JsonIgnoreCondition.Never)] public Address To { get; set; } + [JsonIgnore(Condition = JsonIgnoreCondition.Never)] public Address? ContractAddress { get; set; } public LogEntryForRpc[] Logs { get; set; } public Bloom? LogsBloom { get; set; }