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 15151 . Registry.sol
1616
1717```
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
1919```
2020
21212 . Exchange.sol
2222
2323```
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
2525```
2626
27273 . Vault.sol
2828
2929```
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
3131```
3232
33334 . XSGD.sol
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ import "../../src/Exchange.sol";
66
77contract DeployExchange is Script {
88 function run () external {
9- vm.startBroadcast ();
9+ uint256 deployerPrivateKey = vm.envUint ("PRIVATE_KEY " );
10+ vm.startBroadcast (deployerPrivateKey);
1011
1112 address registryAddress = 0x2b4836d81370e37030727E4DCbd9cC5a772cf43A ;
1213 address usdcAddress = 0x036CbD53842c5426634e7929541eC2318f3dCF7e ;
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ import "../../src/Registry.sol";
66
77contract DeployRegistry is Script {
88 function run () external {
9- vm.startBroadcast ();
9+ uint256 deployerPrivateKey = vm.envUint ("PRIVATE_KEY " );
10+ vm.startBroadcast (deployerPrivateKey);
1011
1112 Registry registry = new Registry ();
1213
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ contract DeployVault is Script {
1919 // Address of aBaseUSDC on Base Sepolia
2020 address aBaseUSDCAddress = 0xfE45Bf4dEF7223Ab1Bf83cA17a4462Ef1647F7FF ;
2121
22- vm.startBroadcast ();
22+ uint256 deployerPrivateKey = vm.envUint ("PRIVATE_KEY " );
23+ vm.startBroadcast (deployerPrivateKey);
2324
2425 // Deploy the implementation contract
2526 Vault vaultImplementation = new Vault ();
You can’t perform that action at this time.
0 commit comments