From 41753a55e987e7479fa7767a9bc38ce598c40e48 Mon Sep 17 00:00:00 2001 From: andri lim Date: Wed, 29 Apr 2020 16:26:09 +0700 Subject: [PATCH] fix typo --- stateless/tree_from_witness.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stateless/tree_from_witness.nim b/stateless/tree_from_witness.nim index 74d747c38..718f7a6c4 100644 --- a/stateless/tree_from_witness.nim +++ b/stateless/tree_from_witness.nim @@ -203,7 +203,7 @@ proc branchNode(t: var TreeBuilder, depth: int, storageMode: bool): NodeKey = r.append "" if branchMaskBitIsSet(mask, 16): - raise newException(ParsingError, "The 17th elem of branh node should empty") + raise newException(ParsingError, "The 17th elem of branch node should empty") # 17th elem should always empty r.append "" @@ -265,7 +265,7 @@ proc extensionNode(t: var TreeBuilder, depth: int, storageMode: bool): NodeKey = case nodeType of BranchNodeType: r.append t.branchNode(depth + nibblesLen, storageMode) of HashNodeType: r.append t.hashNode() - else: raise newException(ValueError, "wrong type during parsing child of extension node") + else: raise newException(ParsingError, "wrong type during parsing child of extension node") result = t.toNodeKey(r.finish)