core: add blob gas info to receipt during apply tx

This commit is contained in:
lightclient 2023-08-25 16:56:08 -06:00
parent f1bd467430
commit 3be5755b6d
No known key found for this signature in database
GPG key ID: 75C916AFEE20183E

View file

@ -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())