Skip to content

Redundant Security Checks & Code Bloat->Replace with Modifiers #93

@aniket866

Description

@aniket866
  • Location: payInvoice, cancelInvoice, getPaymentStatus (Repeated checks for invoiceId, msg.sender, isPaid).

  • Issue : Redundant require(..) checks can be grouped in a modifier , to optimize code byte size

My Proposed Idea:

Refactor repeated require statements into reusable modifiers (e.g., validInvoice, onlyCreator, invoiceActive).

@kumawatkaran523 What's your view on this , Feel free to assign

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions