Skip to content

Token-amount decoder fuzz (overflow, fractional) #78

Description

@Miracle656

Background

i128 / u128 amounts can overflow JavaScript Number. A fuzz that confirms BigInt-only handling.

What to build

fast-check generator for i128 values, assert decoded result is BigInt and equals the input.

Key files

  • tests/decoder.amount.fuzz.test.ts (new)

Acceptance criteria

  • 10k inputs, no precision loss

Drips Wave · Complexity: Easy · 100 points

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions