Skip to content

Commit 04ed480

Browse files
committed
rlp: check if the address is empty only using the size
1 parent 624d75f commit 04ed480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rlp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ ETH_OP eth_rlp_address(struct eth_rlp *rlp, char **addr) {
580580
if ((op = eth_rlp_bytes(rlp, &buf, &hsize)) != ETH_OK)
581581
return op;
582582

583-
if (hsize == 0 && buf[0] == 0x0) {
583+
if (hsize == 0) {
584584
*addr = strdup("");
585585
free(buf);
586586
return ETH_OK;

0 commit comments

Comments
 (0)