Skip to content

Commit

Permalink
Add check for initial deployment nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
gianbelinche committed Aug 28, 2024
1 parent 39208c7 commit bd9935b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system-contracts/contracts/ContractDeployer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ contract ContractDeployer is IContractDeployer, ISystemContract {
// Subtract 1 for EOA since the nonce has already been incremented for this transaction

uint256 deploymentNonce = NONCE_HOLDER_SYSTEM_CONTRACT.getDeploymentNonce(msg.sender);
if (deploymentNonce == 0) {
if ((msg.sender != tx.origin) && deploymentNonce == 0) {
NONCE_HOLDER_SYSTEM_CONTRACT.incrementDeploymentNonce(msg.sender);
}

Expand Down

0 comments on commit bd9935b

Please sign in to comment.