Skip to content

Commit

Permalink
declare variables as immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
gianchandania committed Jan 23, 2024
1 parent 3d5d7f9 commit d590049
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/ForwarderFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion contracts/ForwarderFactoryV4.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion contracts/WalletFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion contracts/recoveryContracts/RecoveryWalletFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit d590049

Please sign in to comment.