Skip to content

toHextruncates leading zeroes #1028

@naorye

Description

@naorye

toHex function truncates leading zeroes:

export function toHex(number: BigNumberish): string {

For example:

toHex('0x023A2aAc5d0fa69E3243994672822BA43E34E5C9') // === "0x23A2aAc5d0fa69E3243994672822BA43E34E5C9"

(zero after '0x' gets truncate)

Metadata

Metadata

Assignees

Labels

OnlyDustOpen for OnlyDust contributorsType: featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions