2

Since Solidity v0.6.8, the neatest way to get hold of max uint256 in Solidity is this:

uint256 foo = type(uint256).max;

Is there something like that for Yul? I couldn't find anything in the docs.

I know about not(0) but I don't like it much.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.