From 7337c4b9d7b64fb55d84ef3229e79a4f6f237932 Mon Sep 17 00:00:00 2001 From: Vitaly Drogan Date: Mon, 4 Nov 2024 13:05:02 +0100 Subject: [PATCH] rpctypes ok when validating cancellations --- rpctypes/types.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpctypes/types.go b/rpctypes/types.go index 37b0155..008be8d 100644 --- a/rpctypes/types.go +++ b/rpctypes/types.go @@ -223,7 +223,9 @@ func uniqueKeyMevSendBundle(b *MevSendBundleArgs, hash hash.Hash) { } func (b *MevSendBundleArgs) Validate() (common.Hash, error) { - if len(b.Body) == 0 { + // only cancell call can be without txs + // cancell call must have ReplacementUUID set + if len(b.Body) == 0 && b.ReplacementUUID == "" { return common.Hash{}, ErrBundleNoTxs } return hashMevSendBundle(0, b)