Skip to content

Commit

Permalink
Merge pull request ethereum#6 from 0rac1e/symbiosis/master
Browse files Browse the repository at this point in the history
check chainid on nil
  • Loading branch information
0rac1e authored Apr 20, 2023
2 parents ecb5810 + f9ac8c9 commit 3c00391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/types/transaction_marshalling.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func (t *Transaction) UnmarshalJSON(input []byte) error {
}

default:
if dec.ChainID.ToInt().Uint64() == 324 || dec.ChainID.ToInt().Uint64() == 42161 {
if dec.ChainID != nil && dec.ChainID.ToInt() != nil && (dec.ChainID.ToInt().Uint64() == 324 || dec.ChainID.ToInt().Uint64() == 42161) {
return nil
}
return ErrTxTypeNotSupported
Expand Down

0 comments on commit 3c00391

Please sign in to comment.