Skip to content

Commit

Permalink
fix: InitEIP155Signer when invoke sender function
Browse files Browse the repository at this point in the history
  • Loading branch information
Karenlrx committed Oct 28, 2022
1 parent e69d0c2 commit bdda18e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/eth_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ func (e *EthTransaction) sender() (*types.Address, error) {
}
return addr, nil
}
if signer.chainIdMul == nil {
InitEIP155Signer(e.GetChainID())
}
V = new(big.Int).Sub(V, signer.chainIdMul)
V.Sub(V, big.NewInt(8))
case AccessListTxType:
Expand Down

0 comments on commit bdda18e

Please sign in to comment.