Skip to content

Commit

Permalink
handle compressedData size = 32
Browse files Browse the repository at this point in the history
  • Loading branch information
vladenysiuk committed May 28, 2024
1 parent 41ca248 commit 3604c6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion system-contracts/contracts/BatchAggregator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,11 @@ contract BatchAggregator is IBatchAggregator, ISystemContract {
compressedDiff = new bytes(optimal+1);
uint8 mask = (optimal<<LENGTH_BITS_OFFSET);
uint256 value;
if (transform==optimal){
if (optimal==32){
mask |= 0;
value = finalValue;
}
else if (transform==optimal){
mask |= 3;
value = finalValue;
}
Expand Down

0 comments on commit 3604c6b

Please sign in to comment.