Skip to content

common.BigToHash stores absolute value of big int #32822

@DenyVeyten

Description

@DenyVeyten

System information

Geth version: v1.16.3

Expected behaviour

"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd0abc"

Actual behaviour

"0x000000000000000000000000000000000000000000000000000000000002f544"

Steps to reproduce the behaviour

common.BigToHash(big.NewInt(-193860)).String()

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