Skip to content

Commit

Permalink
getter for V
Browse files Browse the repository at this point in the history
  • Loading branch information
dusannosovic-ethernal committed Feb 29, 2024
1 parent 75d3bff commit 5ceba89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions types/base_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion types/legacy_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion types/state_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 5ceba89

Please sign in to comment.