-
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
Location:
payInvoice,cancelInvoice,getPaymentStatus(Repeated checks forinvoiceId,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