Skip to content

bug: show human readable "infinite" if user performs a type(uint256).max operation #313

@zerosnacks

Description

@zerosnacks

Describe the bug

Performing an infinite approval (quite a common operation) results in a number that breaks out of the receipt container

Image

On the history page it is better but a human readable label stating "infinite" would be preferred if the number is exactly type(uint256).max.

Image

On the block page, if any transaction includes this extremely large number it obfuscates the hash, fee and total column

Image

Other extremely large numbers could also be handled better by wrapping around or using elipsis

Steps To Reproduce

Visit https://explore.tempo.xyz/receipt/0x203a49563bd89049cf5cd3a78d4f6bf824af945b0b28b59a297ae7e4e1d96662 and https://explore.tempo.xyz/block/5882027

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingexplorer

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions