Skip to content

Commit

Permalink
modify strategist originator incr counter
Browse files Browse the repository at this point in the history
  • Loading branch information
0xgregthedev committed Jan 24, 2024
1 parent ec971e1 commit 415188c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/originators/StrategistOriginator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ contract StrategistOriginator is Ownable, Originator, TokenReceiverInterface {
}
uint256 counter;
unchecked {
counter = _counter += 1 + uint256(blockhash(block.number - 1) >> 0x80);
counter = _counter + 1 + uint256(blockhash(block.number - 1) >> 0x80);
}
_counter = counter;

emit CounterUpdated(counter);
}

Expand Down

0 comments on commit 415188c

Please sign in to comment.