mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
core/types: add sigHash to txdata
This commit is contained in:
parent
4524162004
commit
d3f230f8ed
1 changed files with 1 additions and 14 deletions
|
|
@ -233,20 +233,7 @@ func (s pragueSigner) Hash(tx *Transaction) common.Hash {
|
||||||
if tx.Type() != SetCodeTxType {
|
if tx.Type() != SetCodeTxType {
|
||||||
return s.cancunSigner.Hash(tx)
|
return s.cancunSigner.Hash(tx)
|
||||||
}
|
}
|
||||||
return prefixedRlpHash(
|
return tx.inner.sigHash(s.chainId)
|
||||||
tx.Type(),
|
|
||||||
[]interface{}{
|
|
||||||
s.chainId,
|
|
||||||
tx.Nonce(),
|
|
||||||
tx.GasTipCap(),
|
|
||||||
tx.GasFeeCap(),
|
|
||||||
tx.Gas(),
|
|
||||||
tx.To(),
|
|
||||||
tx.Value(),
|
|
||||||
tx.Data(),
|
|
||||||
tx.AccessList(),
|
|
||||||
tx.SetCodeAuthorizations(),
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type cancunSigner struct{ londonSigner }
|
type cancunSigner struct{ londonSigner }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue