From 77120cd2ac1ecb8794295b76da2a401163532e1b Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi <1591639+s1na@users.noreply.github.com> Date: Thu, 11 Jan 2024 15:05:24 +0330 Subject: [PATCH 1/2] rm extra blank line Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com> --- internal/ethapi/api.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 8714f989d6..e2f02609b4 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -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) } From bccbd0572cdcd106afe031f852d0eff82911df65 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi <1591639+s1na@users.noreply.github.com> Date: Thu, 11 Jan 2024 15:17:13 +0330 Subject: [PATCH 2/2] Update core/state_transition.go Co-authored-by: Martin HS --- core/state_transition.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/state_transition.go b/core/state_transition.go index 1280ecfd12..56f170e777 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -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 }