Commit 54ae283c authored by George Hotz's avatar George Hotz

less keccak

parent 55270ac0
...@@ -677,9 +677,10 @@ library Lib_MerkleTrie { ...@@ -677,9 +677,10 @@ library Lib_MerkleTrie {
if (_encoded.length < 32) { if (_encoded.length < 32) {
return _encoded; return _encoded;
} else { } else {
//console.logBytes32(keccak256(_encoded)); bytes32 encodedHash = keccak256(_encoded);
GetTrie()[keccak256(_encoded)] = _encoded; //console.logBytes32(encodedHash);
return abi.encodePacked(keccak256(_encoded)); GetTrie()[encodedHash] = _encoded;
return abi.encodePacked(encodedHash);
} }
} }
......
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