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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.