diff --git a/types/base_tx.go b/types/base_tx.go index fe25bd9307..d63f534f45 100644 --- a/types/base_tx.go +++ b/types/base_tx.go @@ -25,6 +25,7 @@ func (tx *BaseTx) rawSignatureValues() (v, r, s *big.Int) { } func (tx *BaseTx) hash() Hash { return tx.Hash } func (tx *BaseTx) from() Address { return tx.From } +func (tx *BaseTx) v() *big.Int { return tx.V } func (tx *BaseTx) setNonce(nonce uint64) { tx.Nonce = nonce diff --git a/types/legacy_tx.go b/types/legacy_tx.go index 47bf9d7022..b709729719 100644 --- a/types/legacy_tx.go +++ b/types/legacy_tx.go @@ -13,7 +13,7 @@ type LegacyTx struct { } func (tx *LegacyTx) transactionType() TxType { return LegacyTxType } -func (tx *LegacyTx) chainID() *big.Int { return deriveChainID(tx.baseTx().V) } +func (tx *LegacyTx) chainID() *big.Int { return deriveChainID(tx.baseTx().v()) } func (tx *LegacyTx) gasPrice() *big.Int { return tx.GasPrice } func (tx *LegacyTx) gasTipCap() *big.Int { return tx.GasPrice } func (tx *LegacyTx) gasFeeCap() *big.Int { return tx.GasPrice } diff --git a/types/state_tx.go b/types/state_tx.go index 2a179a999b..38ef69719b 100644 --- a/types/state_tx.go +++ b/types/state_tx.go @@ -13,7 +13,7 @@ type StateTx struct { } func (tx *StateTx) transactionType() TxType { return StateTxType } -func (tx *StateTx) chainID() *big.Int { return deriveChainID(tx.baseTx().V) } +func (tx *StateTx) chainID() *big.Int { return deriveChainID(tx.baseTx().v()) } func (tx *StateTx) gasPrice() *big.Int { return tx.GasPrice } func (tx *StateTx) gasTipCap() *big.Int { return tx.GasPrice } func (tx *StateTx) gasFeeCap() *big.Int { return tx.GasPrice }