Skip to content

Ban U256::as_u64 and similar functions #841

@gztensor

Description

@gztensor

Conversions like U256::as_u64 can panic if U256 value doesn't fit the bitness. We need to ban use of these functions and recommend replacing with try_into.

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