-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
console.log() does not work with uint #6501
Comments
@DaniPopes hmm maybe we're missing these log signatures during decoding? |
I don't think we ever decoded hardhat |
Yes they were, but both tested versions showed the same output. It has been fixed now, thank you! |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (1529edd 2023-12-01T15:45:10.088350100Z) but also tested on a version 2023-06-XX something
What command(s) is the bug in?
forge test (-vvvvv)
Operating System
Windows
Describe the bug
console.log(...)
is not recognized in the stack trace when working with numbers, for example uint, int, etc. The same goes forconsole.logUint(...)
orconsole.logInt(...)
. The function is output with its signature in the stack trace instead of a "human readable"[0] console::log("")
. In my examples I used it as an additional parameter, but also just usingconsole.log(num)
wherenum
is any number (type) does not work properly. However,console2.log(...)
works fine. But that on the other hand does not support parameter replacing, so e.g.console2.log("A string %s in a string!", "< I am a string >");
does not work, the%s
is not replaced (not sure if it's a bug or just working as should forconsole2.log(...)
).The text was updated successfully, but these errors were encountered: