Skip to content

Commit

Permalink
Fix integration tests after ChainID move (#7734)
Browse files Browse the repository at this point in the history
Post-fix after PR #7732
  • Loading branch information
yperbasis committed Jun 14, 2023
1 parent 2dd7df9 commit 4a2a199
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions core/types/dynamic_fee_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,10 @@ func (tx DynamicFeeTransaction) RawSignatureValues() (*uint256.Int, *uint256.Int
return &tx.V, &tx.R, &tx.S
}

func (tx DynamicFeeTransaction) GetChainID() *uint256.Int {
return tx.ChainID
}

func (tx *DynamicFeeTransaction) Sender(signer Signer) (libcommon.Address, error) {
if sc := tx.from.Load(); sc != nil {
return sc.(libcommon.Address), nil
Expand Down
3 changes: 0 additions & 3 deletions core/types/transaction_signing.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,6 @@ func DeriveChainId(v *uint256.Int) *uint256.Int {
if v == 27 || v == 28 {
return new(uint256.Int)
}
if v < 35 {
return nil
}
return new(uint256.Int).SetUint64((v - 35) / 2)
}
r := new(uint256.Int).Sub(v, u256.Num35)
Expand Down

0 comments on commit 4a2a199

Please sign in to comment.