Update core/state_transition.go

Co-authored-by: Martin HS <martin@swende.se>
This commit is contained in:
Sina Mahmoodi 2024-01-11 15:17:13 +03:30 committed by GitHub
parent 77120cd2ac
commit bccbd0572c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -314,9 +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.
// The to field of a blob tx type is mandatory, and a `BlobTx` transaction internally
// has it as a non-nillable value, so any msg derived from blob transaction has it non-nil.
// However, messages created through RPC (eth_call) don't have this restriction.
if msg.To == nil {
return ErrBlobTxCreate
}