Skip to content

Commit

Permalink
switch from left to right shift
Browse files Browse the repository at this point in the history
  • Loading branch information
androolloyd committed Jan 3, 2024
1 parent be9dee4 commit 8b4af46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Starport.sol
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ contract Starport is PausableNonReentrant {
* @dev Increments caveat nonce for sender and emits event
*/
function incrementCaveatNonce() external {
uint256 newNonce = caveatNonces[msg.sender] + uint256(blockhash(block.number - 1) << 0x80);
uint256 newNonce = caveatNonces[msg.sender] + uint256(blockhash(block.number - 1) >> 0x80);
caveatNonces[msg.sender] = newNonce;
emit CaveatNonceIncremented(msg.sender, newNonce);
}
Expand Down

0 comments on commit 8b4af46

Please sign in to comment.