Skip to content

Commit

Permalink
⚡️ Verify contracts config
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanAgudeloRSL committed Jul 13, 2024
1 parent 249e543 commit 3010ec7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 5 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ These URLs will be used to configure your `.env` file for accessing the RSK netw
hh deploy --network rskTestnet --tags 721
```


#### 3. Interact With Contract - Mint

```shell
Expand All @@ -119,6 +118,13 @@ hh erc721-mint \
--network rskTestnet
```


### Verify

```
npx hardhat verify --network rskTestnet DEPLOYED_CONTRACT_ADDRESS "Constructor argument 1"
```

---

### Testing
Expand Down
33 changes: 29 additions & 4 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import "./tasks/erc1155/contract-uri";

// Environment variable setup
const RSK_MAINNET_RPC_URL = process.env.RSK_MAINNET_RPC_URL;
const RSK_TESTNET_RPC_URL = process.env.RSK_TESTNET_RPC_URL;
const RSK_TESTNET_RPC_URL = process.env.RSK_TESTNET_RPC_URL;
const PRIVATE_KEY = process.env.PRIVATE_KEY;

// Ensure environment variables are configured
Expand Down Expand Up @@ -56,15 +56,40 @@ const config: HardhatUserConfig = {
url: RSK_MAINNET_RPC_URL,
chainId: 30,
gasPrice: 60000000,
accounts:[PRIVATE_KEY]
accounts: [PRIVATE_KEY]
},
rskTestnet: {
url: RSK_TESTNET_RPC_URL,
url: RSK_TESTNET_RPC_URL,
chainId: 31,
gasPrice: 60000000,
accounts:[PRIVATE_KEY]
accounts: [PRIVATE_KEY]
},
},
etherscan: {
apiKey: {
// Is not required by blockscout. Can be any non-empty string
rsktestnet: 'your API key',
rskmainnet: 'your API key'
},
customChains: [
{
network: "rsktestnet",
chainId: 31,
urls: {
apiURL: "https://rootstock-testnet.blockscout.com/api/",
browserURL: "https://rootstock-testnet.blockscout.com/",
}
},
{
network: "rskmainnet",
chainId: 30,
urls: {
apiURL: "https://rootstock.blockscout.com/api/",
browserURL: "https://rootstock.blockscout.com/",
}
},
]
},
namedAccounts: {
deployer: {
default: 0, // Default is the first account
Expand Down

0 comments on commit 3010ec7

Please sign in to comment.