public TxReceiptStructRef(TxReceipt receipt) { StatusCode = receipt.StatusCode; BlockNumber = receipt.BlockNumber; BlockHash = (receipt.BlockHash ?? Keccak.Zero).ToStructRef(); TxHash = (receipt.TxHash ?? Keccak.Zero).ToStructRef(); Index = receipt.Index; GasUsed = receipt.GasUsed; GasUsedTotal = receipt.GasUsedTotal; Sender = (receipt.Sender ?? Address.Zero).ToStructRef(); ContractAddress = (receipt.ContractAddress ?? Address.Zero).ToStructRef(); Recipient = (receipt.Recipient ?? Address.Zero).ToStructRef(); ReturnValue = receipt.ReturnValue; PostTransactionState = (receipt.PostTransactionState ?? Keccak.Zero).ToStructRef(); Bloom = (receipt.Bloom ?? Core.Bloom.Empty).ToStructRef(); Logs = receipt.Logs; LogsRlp = Span <byte> .Empty; Error = receipt.Error; }
public void Accumulate(BloomStructRef bloom) { Bytes.Or(bloom.Bytes); }
public bool Equals(BloomStructRef other) { return(Nethermind.Core.Extensions.Bytes.AreEqual(Bytes, other.Bytes)); }