New answers tagged storage
2
votes
Accepted
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 ...
1
vote
Accepted
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 ...
Top 50 recent answers are included
Related Tags
storage × 530solidity × 239
contract-design × 107
contract-development × 79
memory × 70
arrays × 57
blockchain × 51
struct × 46
mapping × 43
gas × 38
evm × 28
go-ethereum × 23
ipfs × 22
swarm × 22
transactions × 19
web3js × 18
private-blockchain × 17
dapps × 16
events × 16
database × 16
remix × 14
contract-deployment × 14
get-storage-at × 13
truffle × 12
dapp-development × 12