remove unnecessary variable during getRoot

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2026-07-28 21:24:12 +03:00
parent 412185b667
commit a6bca9e27f
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB

View File

@ -69,12 +69,11 @@ abstract contract Weaver is IWeaver {
} }
} }
uint256 nextSession = session; if (session < currentSession) {
if (nextSession < currentSession) { unchecked { ++session; }
unchecked { ++nextSession; }
} }
return (currentLevel[0], nextSession); return (currentLevel[0], session);
} }
function getProof( function getProof(