From d59004989f57f6b68bdc574465c092c4ad641a41 Mon Sep 17 00:00:00 2001 From: Akash Gianchandani Date: Tue, 23 Jan 2024 18:00:20 +0530 Subject: [PATCH] declare variables as immutable WIN-1733 --- contracts/ForwarderFactory.sol | 2 +- contracts/ForwarderFactoryV4.sol | 2 +- contracts/WalletFactory.sol | 2 +- contracts/recoveryContracts/RecoveryWalletFactory.sol | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/ForwarderFactory.sol b/contracts/ForwarderFactory.sol index 7973536..84fa159 100644 --- a/contracts/ForwarderFactory.sol +++ b/contracts/ForwarderFactory.sol @@ -4,7 +4,7 @@ import './Forwarder.sol'; import './CloneFactory.sol'; contract ForwarderFactory is CloneFactory { - address public implementationAddress; + address public immutable implementationAddress; event ForwarderCreated( address newForwarderAddress, diff --git a/contracts/ForwarderFactoryV4.sol b/contracts/ForwarderFactoryV4.sol index 6f63bce..e8cf86a 100644 --- a/contracts/ForwarderFactoryV4.sol +++ b/contracts/ForwarderFactoryV4.sol @@ -8,7 +8,7 @@ import './CloneFactory.sol'; * @notice This contract will deploy new forwarder contracts using the create2 opcode */ contract ForwarderFactoryV4 is CloneFactory { - address public implementationAddress; + address public immutable implementationAddress; /** * @notice Event triggered when a new forwarder is deployed diff --git a/contracts/WalletFactory.sol b/contracts/WalletFactory.sol index 245ffe6..e6e7856 100644 --- a/contracts/WalletFactory.sol +++ b/contracts/WalletFactory.sol @@ -4,7 +4,7 @@ import './WalletSimple.sol'; import './CloneFactory.sol'; contract WalletFactory is CloneFactory { - address public implementationAddress; + address public immutable implementationAddress; event WalletCreated(address newWalletAddress, address[] allowedSigners); diff --git a/contracts/recoveryContracts/RecoveryWalletFactory.sol b/contracts/recoveryContracts/RecoveryWalletFactory.sol index cbda11c..a101598 100644 --- a/contracts/recoveryContracts/RecoveryWalletFactory.sol +++ b/contracts/recoveryContracts/RecoveryWalletFactory.sol @@ -4,7 +4,7 @@ import './RecoveryWalletSimple.sol'; import '../CloneFactory.sol'; contract RecoveryWalletFactory is CloneFactory { - address public implementationAddress; + address public immutable implementationAddress; constructor(address _implementationAddress) { require(_implementationAddress != address(0), 'Invalid implementation address');