Skip to content

Commit

Permalink
Merge pull request #1923 from niuxiaojie89/feature/double-chainid-2
Browse files Browse the repository at this point in the history
fixed error with ErrInvalidChainId when creating contract
  • Loading branch information
benbaley authored Apr 7, 2022
2 parents 354c0f4 + 5b18142 commit 4349192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ func SubmitTransaction(ctx context.Context, b Backend, tx *types.Transaction) (c
return common.Hash{}, err
}
if tx.To() == nil {
signer := types.NewEIP155Signer(b.ChainConfig().ChainID)
signer := types.MakeSigner(b.ChainConfig(), true)
from, err := types.Sender(signer, tx)
if err != nil {
return common.Hash{}, err
Expand Down

0 comments on commit 4349192

Please sign in to comment.