admin
over 1 year ago  Karma: 10
how to check `bytes` empty?

i had try
```bytes memory tempEmptyStringTest = bytes(emptyStringTest);
tempEmptyStringTest.length == 0


but no work
#coding
#solidity
admin
over 1 year ago  Karma: 10
how to check `bytes` empty?

i had try
```bytes memory tempEmptyStringTest = bytes(emptyStringTest);
tempEmptyStringTest.length == 0


but no work
#coding
#solidity

Earn tokens by posting and answering questions about blockchain!
Karma to eth
BE THE FIRST TO ANSWER