Theoretical question. What is the maximum storage in a contract?

I have seen how proxies are used to store data in separate contracts apart from the possibility of updating the main contract. But this has led me to ask myself the following question.

If a contract intends to receive a lot of data, does it have to take into account any storage limit?

I know that the gas limit of a block is several million units of gas, but I don't know anything about the storage limit. Is there such a thing?

There are only 2^256 storage locations. This would be the storage limit, but it is practically unreachable.

1 Like

It is easier for a hash colision to happen in a contract because of a masive use of arrays and data structures, isn't it?

Yes but I have never seen anyone genuinely concerned about it. The probabilities are just too low.

1 Like