polish err documentation

This commit is contained in:
Sina Mahmoodi 2024-01-10 19:28:32 +03:30
parent 18ba214b02
commit ea87309442

View file

@ -314,6 +314,9 @@ func (st *StateTransition) preCheck() error {
}
// Check the blob version validity
if msg.BlobHashes != nil {
// The to field of a blob tx type is mandatory.
// However messages created through RPC (eth_call)
// don't have this restriction.
if msg.To == nil {
return ErrBlobTxCreate
}