Skip to content

Commit

Permalink
core/types/transaction: grab data hashes from blob txs for message
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient committed Feb 19, 2022
1 parent 5e37223 commit e61cf36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/types/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit e61cf36

Please sign in to comment.