From 3be5755b6d95e828f8247e27d90948cd29da6925 Mon Sep 17 00:00:00 2001 From: lightclient Date: Fri, 25 Aug 2023 16:56:08 -0600 Subject: [PATCH] core: add blob gas info to receipt during apply tx --- core/state_processor.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/state_processor.go b/core/state_processor.go index 48932a1aca..a2a3165336 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -135,6 +135,9 @@ func applyTransaction(msg *Message, config *params.ChainConfig, gp *GasPool, sta receipt.TxHash = tx.Hash() receipt.GasUsed = result.UsedGas + receipt.BlobGasUsed = uint64(len(tx.BlobHashes()) * params.BlobTxBlobGasPerBlob) + receipt.BlobGasPrice = tx.BlobGasFeeCap() + // If the transaction created a contract, store the creation address in the receipt. if msg.To == nil { receipt.ContractAddress = crypto.CreateAddress(evm.TxContext.Origin, tx.Nonce())