Home > Blockchain >  Why the solidity of the empty string is not all zero
Why the solidity of the empty string is not all zero

Time:09-21

Solidity code is as follows:
 contract TestLog {
Bytes constant internal EMPTY_BYTES="";
The event Logempty (bytes data);
The function the Log () public {
Emit Logempty (EMPTY_BYTES);
}
}


Why each time you execute the Log function, in the event Log is 0 x20 in print? Should not be all zero?
Test online deployed good contracts, the event log link below
https://ropsten.etherscan.io/address/0xb0723e0943b7b10c985365df6aef983bc6eeb6d6#events

  • Related