Skip to content

Allow Cmp to big.Int without converting big.Int #135

@wjmelements

Description

@wjmelements
Feature
func (*uint256.Int) CmpBig(big.Int) int
Motivation

Generally uint256.Int is superior and should replace big.Int everywhere. But in forked or in sufficiently large codebases it may not be practical or necessary to replace all instances. At the boundaries, this function could circumvent an explicit conversion.

I didn't find this feature when I looked for it so please close this if it already exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions