core/types: add sigHash to txdata

This commit is contained in:
Marius van der Wijden 2025-02-25 13:49:09 +01:00
parent 87aa20d3fc
commit bf896e824b
1 changed files with 1 additions and 14 deletions

View File

@ -233,20 +233,7 @@ func (s pragueSigner) Hash(tx *Transaction) common.Hash {
if tx.Type() != SetCodeTxType {
return s.cancunSigner.Hash(tx)
}
return prefixedRlpHash(
tx.Type(),
[]interface{}{
s.chainId,
tx.Nonce(),
tx.GasTipCap(),
tx.GasFeeCap(),
tx.Gas(),
tx.To(),
tx.Value(),
tx.Data(),
tx.AccessList(),
tx.SetCodeAuthorizations(),
})
return tx.inner.sigHash(s.chainId)
}
type cancunSigner struct{ londonSigner }