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.

Paul Razvan Berg
  • 17,902
  • 6
  • 73
  • 143

0 Answers0