//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.18; contract hometask{ mapping(address => uint8) User; function addValue(address wallet, uint8 value) { User[wallet] = value; } function getValue(address wallet) constant returns (uint8) { return User[wallet]; } function deleteValue(address wallet) constant returns (uint8) { //не могу понять,как удалить само значение, а не кошелёк delete wallet; return User[wallet]; } }
0.4.21