Skip to content

Commit 2f99a4f

Browse files
committed
fix: Correct contract names in UUPS proxy deployment for RLCAdapter and RLCOFT scripts
1 parent 07fbd3d commit 2f99a4f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

script/RLCAdapter.s.sol

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ contract Deploy is Script {
1717

1818
Options memory options;
1919
options.constructorData = abi.encode(rlcToken, lzEndpoint);
20+
21+
// Ignorer explicitement les vérifications non contournables
22+
string memory unsafeAllow = "constructor,state-variable-immutable"; // comma-separated if multiple allowed
23+
options.unsafeAllow = unsafeAllow;
24+
2025
address rlcAdapterProxy =
21-
Upgrades.deployUUPSProxy("RLCOFT.sol", abi.encodeCall(RLCAdapter.initialize, (ownerAddress)), options);
26+
Upgrades.deployUUPSProxy("RLCAdapter.sol", abi.encodeCall(RLCAdapter.initialize, (ownerAddress)), options);
2227
console.log("RLCAdapterProxy deployed at:", rlcAdapterProxy);
2328

2429
vm.stopBroadcast();

script/RLCOFT.s.sol

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@ contract Deploy is Script {
1818

1919
Options memory options;
2020
options.constructorData = abi.encode(lzEndpoint);
21+
22+
string memory unsafeAllow = "constructor,state-variable-immutable"; // comma-separated if multiple allowed
23+
options.unsafeAllow = unsafeAllow;
24+
2125
address rlcOFTProxy = Upgrades.deployUUPSProxy(
22-
"RLCAdapter.sol", abi.encodeCall(RLCOFT.initialize, (name, symbol, delegate)), options
26+
"RLCOFT.sol", abi.encodeCall(RLCOFT.initialize, (name, symbol, delegate)), options
2327
);
2428
console.log("rlcOFTProxy deployed at:", rlcOFTProxy);
2529

0 commit comments

Comments
 (0)