Skip to content

Conversation

bh2smith
Copy link
Member

@bh2smith bh2smith commented Feb 1, 2025

We have been getting a parse error on number types

InvalidDecimalNumberError: Number `2.22047152096e-16` is not a valid decimal number.

Version: viem@2.21.52
    details: undefined,
   docsPath: undefined,
 metaMessages: undefined,
 shortMessage: "Number `2.22047152096e-16` is not a valid decimal number.",
    version: "2.21.52",

this resolves it in the simplest, quickest way.

@bh2smith bh2smith changed the title Use toFixed [Bug] Use toFixed Feb 1, 2025
@bh2smith bh2smith merged commit 7100b9d into main Feb 1, 2025
1 check passed
@bh2smith bh2smith deleted the toFixed branch February 1, 2025 23:28
bh2smith added a commit to bh2smith/near-cow-agent that referenced this pull request Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant