Commit 056f76a4 by Francisco Giordano

add manual patch for immutable variable in UUPSUpgradeable

parent 5f506b06
diff --git a/contracts/proxy/utils/UUPSUpgradeable.sol b/contracts/proxy/utils/UUPSUpgradeable.sol
index a9568729..860e66d7 100644
--- a/contracts/proxy/utils/UUPSUpgradeable.sol
+++ b/contracts/proxy/utils/UUPSUpgradeable.sol
@@ -24,10 +24,9 @@ abstract contract UUPSUpgradeable is Initializable, ERC1967UpgradeUpgradeable {
}
function __UUPSUpgradeable_init_unchained() internal initializer {
- __self = address(this);
}
/// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
- address private __self;
+ address private immutable __self = address(this);
/**
* @dev Check that the execution is being performed through a delegatecall call and that the execution context is
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment