Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Updated urls for the alpha (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
pajicf authored Feb 27, 2023
1 parent d8ae214 commit b782350
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
PRIVATE_KEY=0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1
SCROLL_TESTNET_URL=https://prealpha-rpc.scroll.io/l2
# SCROLL_TESTNET_URL=https://prealpha-rpc.scroll.io/l2 - Uncomment this line to use the pre-alpha instead of alpha
SCROLL_TESTNET_URL=https://alpha-rpc.scroll.io/l2
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ typechain-types
cache
artifacts

# IDE files
.idea

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This project demonstrates how to use hardhat or foundry to deploy a contract in
```
3. Deploy the contract.
```
forge create --rpc-url https://prealpha-rpc.scroll.io/l2 \
forge create --rpc-url https://alpha-rpc.scroll.io/l2 \
--value <lock_amount> \
--constructor-args <unlock_time> \
--private-key <your_private_key> \
Expand All @@ -43,7 +43,7 @@ This project demonstrates how to use hardhat or foundry to deploy a contract in

For example:
```
forge create --rpc-url https://prealpha-rpc.scroll.io/l2 --value 0.00000000002ether --constructor-args 1696118400 --private-key 0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1 --legacy contracts/Lock.sol:Lock
forge create --rpc-url https://alpha-rpc.scroll.io/l2 --value 0.00000000002ether --constructor-args 1696118400 --private-key 0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1 --legacy contracts/Lock.sol:Lock
```

## Support
Expand Down
3 changes: 2 additions & 1 deletion scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ async function main() {
await lock.deployed();

console.log(`Lock with 0.00000001 ETH and unlock timestamp ${unlockTime} deployed to ${lock.address}`);
console.log(`Block explorer URL: https://l2scan.scroll.io/address/${lock.address}`);
// console.log(`Block explorer URL: https://l2scan.scroll.io/address/${lock.address}`); Uncomment here to use the pre-alpha
console.log(`Block explorer URL: https://blockscout.scroll.io/address/${lock.address}`);
}

// We recommend this pattern to be able to use async/await everywhere
Expand Down

0 comments on commit b782350

Please sign in to comment.