Skip to content
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

Option to remove scientific notation from cast calls #6982

Closed
jordaniza opened this issue Feb 1, 2024 · 1 comment
Closed

Option to remove scientific notation from cast calls #6982

jordaniza opened this issue Feb 1, 2024 · 1 comment

Comments

@jordaniza
Copy link

Up until recently, cast call would return just the return data. Now a separate value is returned if the return type is specified as uint256.

I can parse this quite happily with shell commands but it's an extra headache and has broken all my scripts. Moreover the behaviour is not consistent, if you don't decode the return data, you get one value.

It would be great to make this either:

  • not the default - developers can parse big numbers themselves
  • opt out with a flag - breaking change but otherwise doesn't introduce new parsing logic.
@DaniPopes DaniPopes transferred this issue from foundry-rs/book Feb 1, 2024
@mds1
Copy link
Collaborator

mds1 commented Feb 1, 2024

Closing as duplicate of #6598, feel free to add any thoughts to that discussion

Also related to #6600

@mds1 mds1 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Status: Done
Development

No branches or pull requests

2 participants