Commit 8ae5f4d
committed
hexToBuffer accept empty string
So it's possible to:
```
bitcore.util.buffer.hexToBuffer('').toString('hex');
```
that produce an empty string as expected,
instead od an assertion error.
This commit makes bitpay#3181 unnecessary.1 parent a90b8f5 commit 8ae5f4d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
0 commit comments