adding bitwise logging to console.sol #4377
Replies: 2 comments
-
Hi @CryptoKiddies, thanks for sharing this. The way That being said, I think this is a reasonable feature request. I wouldn't do it at the solidity level though. I think we should pre-process the arguments and handle things like |
Beta Was this translation helpful? Give feedback.
-
A bit of a delay here... yes, definitely think this would be useful for low level developers (which are still commonplace for now) in the solidity ecosystem. Any kind of bitwise operations or state packing optimization testing would benefit from being able to see the word printed out as 1s and 0s. Wonder if I can contribute, but definitely agree this is pre-processed. |
Beta Was this translation helpful? Give feedback.
-
Hi team, I had this utility created to see the bitwise values in a word for testing and debugging contract logic, particularly when using bit masks. Wondering if you'd be interested in adding support directly in console.sol with this util? I'm suggesting a feature indicated with a
%b
flag perhaps. Cheers!code: https://github.com/YOLOrekt/community-bug-bounty/blob/bounty-head/contracts/utils/LogBinary.sol
Beta Was this translation helpful? Give feedback.
All reactions