From e61cf36f314149d80e2c4ed15335a6d72cf511f8 Mon Sep 17 00:00:00 2001 From: "lightclient@protonmail.com" Date: Sat, 19 Feb 2022 12:59:54 -0700 Subject: [PATCH] core/types/transaction: grab data hashes from blob txs for message --- core/types/transaction.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/types/transaction.go b/core/types/transaction.go index 27ca1cd54014..2b388019360c 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -20,12 +20,13 @@ import ( "bytes" "container/heap" "errors" - "github.com/protolambda/ztyp/codec" "io" "math/big" "sync/atomic" "time" + "github.com/protolambda/ztyp/codec" + "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/crypto" @@ -628,6 +629,7 @@ func (tx *Transaction) AsMessage(s Signer, baseFee *big.Int) (Message, error) { amount: tx.Value(), data: tx.Data(), accessList: tx.AccessList(), + dataHashes: tx.BlobVersionedHashes(), isFake: false, } // If baseFee provided, set gasPrice to effectiveGasPrice.