-
Notifications
You must be signed in to change notification settings - Fork 4
Gas optimisation ObjectInfo #653
Copy link
Copy link
Open
Description
- Remove initialOwner field from ObjectInfo as its not really needed
- Remove data field from struct and store data in a separate mapping which is only used in the rare case that the object has data
This will reduce the amout of slots needed for ObjectInfo by 50% down to 2 slots which will cut read/write costs for this in half.
Example tx https://amoy.polygonscan.com/tx/0xc85256c6980d7c30ec633892906c51d38d800e24b18a1c7704cc63b2f9e25cd5
Reactions are currently unavailable

