Skip to content

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

@pacu

Description

@pacu
    // 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:
            ""
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions