Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate the param idx, since zero is not a valid number #5

Open
pacu opened this issue Nov 15, 2023 · 0 comments
Open

Validate the param idx, since zero is not a valid number #5

pacu opened this issue Nov 15, 2023 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@pacu
Copy link
Collaborator

pacu commented Nov 15, 2023

    // TODO: validate the idx, since zero is not a valid number
    // see: https://github.com/pacu/zcash-swift-payment-uri/issues/5
    static func parameterIndex(_ idx: UInt?) -> String {
        switch idx {
        case .some(let i):
            ".\(i)"
        case .none:
            ""
        }
    }
@pacu pacu added help wanted Extra attention is needed good first issue Good for newcomers labels Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant