CRYPTO NEWS

Why am I getting Index out of bounds here?

I am trying this:

address[][] memory mintQuantity = new address[][](2); mintQuantity[0][0] = address(0); mintQuantity[1][0] = address(0); 

But keep getting an error:

[FAIL. Reason: Index out of bounds] 

I have tried multiple variations of new address[][](2) but can’t seem to get it right.

Doing this with a One-Dimensional Array works fine.

Why am I getting Index out of bounds here?

Shopping cart
There are no products in the cart!
Continue shopping
0