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.
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community