From 1af98f981aa04ad589d7605eb74033841e462439 Mon Sep 17 00:00:00 2001 From: Leonard Stutzer Date: Tue, 21 Feb 2023 14:54:51 +0800 Subject: [PATCH] remove redundant nibble traversal for extensions --- contracts/MerklePatriciaProof.sol | 4 ---- 1 file changed, 4 deletions(-) diff --git a/contracts/MerklePatriciaProof.sol b/contracts/MerklePatriciaProof.sol index a47eee9..e0f49d7 100644 --- a/contracts/MerklePatriciaProof.sol +++ b/contracts/MerklePatriciaProof.sol @@ -59,10 +59,6 @@ library MerklePatriciaProof { return false; } } - //extension node - if(_nibblesToTraverse(RLP.toData(currentNodeList[0]), path, pathPtr) == 0) { - return false; - } nodeKey = RLP.toBytes32(currentNodeList[1]); } else {