Skip to content

Commit

Permalink
rpctypes ok when validating cancellations
Browse files Browse the repository at this point in the history
  • Loading branch information
dvush committed Nov 4, 2024
1 parent 533902e commit 7337c4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rpctypes/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7337c4b

Please sign in to comment.