Open naddison36 opened 2 years ago
The TestStorage contract has two examples
TestStorage
uint256 public constant N_COINS = 3; address[N_COINS] coins; IERC20[2 * N_COINS] doubleTokens; IERC20[N_COINS ** 2] powerTokens;
The coins variable is currently showing as only taking one slot but it actually takes three. The doubleTokens variable is currently showing as only taking one slot but it actually takes six.
coins
doubleTokens
The
TestStorage
contract has two examplesThe
coins
variable is currently showing as only taking one slot but it actually takes three. ThedoubleTokens
variable is currently showing as only taking one slot but it actually takes six.