Skip to content

Commit

Permalink
update readme to optimsm
Browse files Browse the repository at this point in the history
  • Loading branch information
FredCoen committed Apr 20, 2022
1 parent ddbec0f commit 750b60d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ Run individual test:
forge test --match-test <test-name>
```

### Deploy to Arbitrum
### Deploy to Optimism

```bash
export PRIVATE_KEY = <your-private-key>
export RPC_URL_ARBITRUM = <your_rpc_url>
export RPC_URL_OPTIMISM = <your_rpc_url>
```

```bash
forge create --rpc-url $RPC_URL_ARBITRUM --private-key $PRIVATE_KEY src/ERC721CryptoTesters.sol:ERC721CryptoTesters --constructor-args <args>
forge create --rpc-url $RPC_URL_OPTIMISM --private-key $PRIVATE_KEY src/ERC721CryptoTesters.sol:ERC721CryptoTesters --constructor-args <args>
```

### Verify deployed contract on Arbiscan

```bash
forge verify-contract --chain-id 421611 --num-of-optimizations 1000000 --constructor-args <abi-encoded-args> --compiler-version v0.8.0+commit.c7dfd78e <deployment-address> src/ERC721CryptoTesters.sol:ERC721CryptoTesters <arbiscan-apy-key>
forge verify-contract --chain-id 69 --num-of-optimizations 200 --constructor-args <abi-encoded-args> --compiler-version v0.8.13+commit.abaa5c0e <contract-address> src/ERC721CryptoTesters.sol:ERC721CryptoTester <optmistic-etherscan-key>
```

Note: Use cast cli to get encoded constructor args
Expand All @@ -56,9 +56,9 @@ cast abi-encode "constructor(string,string,bytes32,bool,bool)" <args>
Check contract has been verified:

```bash
forge verify-check --chain-id 421611 <GUID> <arbiscan-apy-key>
forge verify-check --chain-id 69 <GUID> <arbiscan-apy-key>
```

## License

All code has been licensed under CC0, just like CryptoTesters themselves.
All code has been licensed under CC0, just like the CryptoTesters themselves.

0 comments on commit 750b60d

Please sign in to comment.