New answers tagged

2 votes

Clearing storage struct array with Solidity

Not sure why delete should feel complicated. function _createLottery() internal { delete tickets; } It essentially resets the whole storage array by 'zeroing' out all data that you have ...
user avatar
  • 1,099
1 vote

Upgrade of storage within proxy system

SOLUTION: Instead of proxies reading from an instance of the storage contract, have them read from an array of storage addresses. So instead of having to upgrade the old storage contract, a new ...
user avatar
  • 307

Top 50 recent answers are included