diff --git a/core/types/transaction_marshalling.go b/core/types/transaction_marshalling.go index cf21e60525f6..d95e37e3378e 100644 --- a/core/types/transaction_marshalling.go +++ b/core/types/transaction_marshalling.go @@ -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