Skip to content

Commit 589b7d7

Browse files
committed
feat: edited deployment scripts and update readme
1 parent bd992b4 commit 589b7d7

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
1. 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

2121
2. 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

2727
3. 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

3333
4. XSGD.sol

script/deploy/Exchange.s.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import "../../src/Exchange.sol";
66

77
contract 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;

script/deploy/Registry.s.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import "../../src/Registry.sol";
66

77
contract 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

script/deploy/Vault.s.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)