Skip to content

little-endian constructor ignoring important zeroes #208

@igormcoelho

Description

@igormcoelho

I noticed that constructor is ignoring important zeroes on little-endian constructor.
Example:

x = new BN('0000ff', 16, 'le')
<BN: ff>   // should be  <BN: ff0000>
x = new BN('010000ff', 16, 'le')
<BN: ff000001>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions