I tried this
contract MyContract{
bytes public data = 0x3333;
function clearData(){
data = 0x;
}
}
But solc doesn't like me trying to set data to 0x
bytessolidity
I tried this
contract MyContract{
bytes public data = 0x3333;
function clearData(){
data = 0x;
}
}
But solc doesn't like me trying to set data to 0x
Best Answer
Use
""
.Tested using https://ethereum.github.io/browser-solidity by looking at the value of
data
andempty
.