Commit 25a2a575 authored by Michael Zhou's avatar Michael Zhou Committed by GitHub

Fix shortcut for single element (#353)

parent efa271ad
......@@ -34,7 +34,7 @@ library Lib_MerkleTree {
"Lib_MerkleTree: Must provide at least one leaf hash."
);
if (_elements.length == 0) {
if (_elements.length == 1) {
return _elements[0];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment