File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 15
15
1 . Registry.sol
16
16
17
17
```
18
- forge script script/deploy/Registry.s.sol:DeployRegistry --rpc-url <PRC_URL> --broadcast --private-key <PRIVATE_KEY>
18
+ forge script script/deploy/Registry.s.sol:DeployRegistry --rpc-url <PRC_URL> --broadcast
19
19
```
20
20
21
21
2 . Exchange.sol
22
22
23
23
```
24
- forge script script/deploy/Exchange.s.sol:DeployExchange --rpc-url <PRC_URL> --broadcast --private-key <PRIVATE_KEY>
24
+ forge script script/deploy/Exchange.s.sol:DeployExchange --rpc-url <PRC_URL> --broadcast
25
25
```
26
26
27
27
3 . Vault.sol
28
28
29
29
```
30
- forge script script/deploy/Vault.s.sol:DeployVault --rpc-url <PRC_URL> --broadcast --private-key <PRIVATE_KEY>
30
+ forge script script/deploy/Vault.s.sol:DeployVault --rpc-url <PRC_URL> --broadcast
31
31
```
32
32
33
33
4 . XSGD.sol
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ import "../../src/Exchange.sol";
6
6
7
7
contract DeployExchange is Script {
8
8
function run () external {
9
- vm.startBroadcast ();
9
+ uint256 deployerPrivateKey = vm.envUint ("PRIVATE_KEY " );
10
+ vm.startBroadcast (deployerPrivateKey);
10
11
11
12
address registryAddress = 0x2b4836d81370e37030727E4DCbd9cC5a772cf43A ;
12
13
address usdcAddress = 0x036CbD53842c5426634e7929541eC2318f3dCF7e ;
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ import "../../src/Registry.sol";
6
6
7
7
contract DeployRegistry is Script {
8
8
function run () external {
9
- vm.startBroadcast ();
9
+ uint256 deployerPrivateKey = vm.envUint ("PRIVATE_KEY " );
10
+ vm.startBroadcast (deployerPrivateKey);
10
11
11
12
Registry registry = new Registry ();
12
13
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ contract DeployVault is Script {
19
19
// Address of aBaseUSDC on Base Sepolia
20
20
address aBaseUSDCAddress = 0xfE45Bf4dEF7223Ab1Bf83cA17a4462Ef1647F7FF ;
21
21
22
- vm.startBroadcast ();
22
+ uint256 deployerPrivateKey = vm.envUint ("PRIVATE_KEY " );
23
+ vm.startBroadcast (deployerPrivateKey);
23
24
24
25
// Deploy the implementation contract
25
26
Vault vaultImplementation = new Vault ();
You can’t perform that action at this time.
0 commit comments