Skip to content

Contract refactor , Optimization and Using Custom Errors Where ever possible #103

@aniket866

Description

@aniket866

Where ? : in contracts

What happened ?: The contract mixes string requires ("Recipient address is zero") with custom errors.

What should be?: Replace all require strings with custom errors (like, error InvalidRecipient(), error PaymentFailed())

Why?: Easy deployment and efficient contract because Strings cost more gas to deploy and execute.
@kumawatkaran523 I have Proposed a fix Please review, #102

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions