Merge branch 'api/blob' of github.com:s1na/go-ethereum into api/blob

This commit is contained in:
Sina Mahmoodi 2024-01-11 15:21:38 +03:30
commit 5b85d6c9e6
2 changed files with 3 additions and 4 deletions

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
}

View file

@ -478,7 +478,6 @@ func (s *PersonalAccountAPI) SendTransaction(ctx context.Context, args Transacti
log.Warn("Failed transaction send attempt", "from", args.from(), "to", args.To, "value", args.Value.ToInt(), "err", err)
return common.Hash{}, err
}
return SubmitTransaction(ctx, s.b, signed)
}