remove unnecessary variable during getRoot
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
412185b667
commit
a6bca9e27f
@ -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(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user