Skip to content

fee() method missing positive integer validation for job parameter #400

Description

@morphqdd

What happens: The fee() method in lib/baza-rb.rb (lines 457–458) checks that job is not nil and is an Integer, but does not check that it is positive. Calling baza.fee('unknown', 1.0, 'test', -1) passes local validation and sends a negative job ID to the server.

What should happen: fee() should raise an error when job is not positive, consistent with the transfer() method (line 432) which validates unless job.positive?.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    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