Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Only the deployer can increment the deployment nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless committed Oct 31, 2023
1 parent 4ccbbb2 commit 8df2164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/NonceHolder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ contract NonceHolder is INonceHolder, ISystemContract {
/// @param _address The address of the account which to return the deploy nonce for.
/// @return prevDeploymentNonce The deployment nonce at the time this function is called.
function incrementDeploymentNonce(address _address) external returns (uint256 prevDeploymentNonce) {
require(msg.sender == address(DEPLOYER_SYSTEM_CONTRACT), "");
require(msg.sender == address(DEPLOYER_SYSTEM_CONTRACT), "Only the deployer can increment the deployment nonce");
uint256 addressAsKey = uint256(uint160(_address));
uint256 oldRawNonce = rawNonces[addressAsKey];

Expand Down

0 comments on commit 8df2164

Please sign in to comment.