add clarifying comment

This commit is contained in:
Sina Mahmoodi 2024-01-09 17:28:50 +03:30
parent 003d175e21
commit 35c0777f95

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
}