-
Notifications
You must be signed in to change notification settings - Fork 2k
cast call returns integers in scientific notation #6598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I just git hit by this too. I worked it around by adding The scientific notion doesn't show up for small numbers, so it's not consistent. A script that doesn't expect that may crash only when specific data is returned, which may happen after executing many expensive operations or operations that need a closure. |
I think adding the scientific notation output was a breaking change? I don't remember that always being there. If so, that does break cast integrations and usage in scripts. I think we should revert the default to what it used to be to preserve integrations, and have a |
Almost certainly a breaking change. I, like @CodeSandwich, am just using trivial unix commands to slice the output but would prefer it be opt-in given the inconsistency |
Should we close this issue as a duplicate of #6600? |
Duplicate of #6600 |
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
cast 0.2.0 (53b15e6 2023-12-14T00:16:29.514805588Z)
What command(s) is the bug in?
cast call
Operating System
Linux
Describe the bug
The returned numeric output of
cast call
includes the values in scientific notation. I'm not sure when this change in behavior occurred, but the previous versions of cast didn't do this. This breaks scripts that expect a certain format. The old behavior was something like this:The text was updated successfully, but these errors were encountered: