Skip to content

Commit d50588c

Browse files
committed
refactor: Change variable declarations for RLCAdapter and RLCOFT to local scope in deployment scripts
1 parent 67af7c0 commit d50588c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

script/RLCAdapter.s.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import {RLCAdapter} from "../src/RLCAdapter.sol";
77
import {EnvUtils} from "./UpdateEnvUtils.sol";
88

99
contract Deploy is Script {
10-
RLCAdapter public rlcAdapter;
11-
1210
function setUp() public {}
1311

1412
function run() external {
@@ -18,7 +16,7 @@ contract Deploy is Script {
1816
address lzEndpoint = vm.envAddress("LAYER_ZERO_SEPOLIA_ENDPOINT_ADDRESS"); // LayerZero sepolia endpoint
1917
address delegate = vm.envAddress("SENDER_ADDRESS"); // Your actual wallet address
2018

21-
rlcAdapter = new RLCAdapter(rlcToken, lzEndpoint, delegate);
19+
RLCAdapter rlcAdapter = new RLCAdapter(rlcToken, lzEndpoint, delegate);
2220
console.log("RLCAdapter deployed at:", address(rlcAdapter));
2321

2422
vm.stopBroadcast();

script/RLCOFT.s.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import {RLCOFT} from "../src/RLCOFT.sol";
77
import {EnvUtils} from "./UpdateEnvUtils.sol";
88

99
contract Deploy is Script {
10-
RLCOFT public rlcOFT;
11-
1210
function setUp() public {}
1311

1412
function run() external {
@@ -19,7 +17,7 @@ contract Deploy is Script {
1917
address lzEndpoint = vm.envAddress("LAYER_ZERO_ARBITRUM_SEPOLIA_ENDPOINT_ADDRESS");
2018
address delegate = vm.envAddress("SENDER_ADDRESS");
2119

22-
rlcOFT = new RLCOFT(name, symbol, lzEndpoint, delegate);
20+
RLCOFT rlcOFT = new RLCOFT(name, symbol, lzEndpoint, delegate);
2321
console.log("rlcOFT deployed at:", address(rlcOFT));
2422

2523
vm.stopBroadcast();

0 commit comments

Comments
 (0)