TransWikia.com

What is the maximum size of a struct?

Ethereum Asked by user3316323 on November 18, 2021

Assuming gas and hard drive space are not an issue, if you had a struct containing arrays how much data could you actually put into those arrays before the struct reaches its maximum size? I am attempting to use mapping to a struct to keep track of some information and would like to understand how much I can give it before it cannot get any larger and what I can do to help keep the data record past that.

My current plan is to create a new struct that references the previous maps key once the struct is at its max size, but I don’t know if that is an ideal situation yet.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP