Skip to content

Commit

Permalink
dapp: Replace sapphire_testnet -> sapphire-testnet for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
matevz committed Nov 20, 2023
1 parent 118e4e6 commit 9f01156
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions docs/dapp/opl/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ index cd8df42..0875e8e 100644
+ local: {
+ url: 'http://127.0.0.1:8545',
+ },
+ bsc_testnet: {
+ 'bsc-testnet': {
+ url: 'https://data-seed-prebsc-1-s1.binance.org:8545',
+ chainId: 97,
+ accounts,
+ },
+ sapphire_testnet: {
+ 'sapphire-testnet': {
+ url: 'https://testnet.sapphire.oasis.dev',
+ chainId: 0x5aff,
+ accounts,
Expand Down Expand Up @@ -142,7 +142,7 @@ export PRIVATE_KEY=
Deploy the enclave smart contract using Testnet parameters.

```shell
npx hardhat deploy-ballot-box --network sapphire_testnet --host-network bsc_testnet
npx hardhat deploy-ballot-box --network sapphire-testnet --host-network bsc-testnet
Nothing to compile
No need to generate any newer typings.
expected DAO 0xFBcb580DD6D64fbF7caF57FB0439502412324179
Expand All @@ -153,7 +153,7 @@ Next, use the obtained `BallotBox` address below to deploy the host smart
contract:

```shell
npx hardhat deploy-dao --network bsc_testnet --ballot-box-addr {BALLOT_BOX_ADDR}
npx hardhat deploy-dao --network bsc-testnet --ballot-box-addr {BALLOT_BOX_ADDR}
Nothing to compile
No need to generate any newer typings.
DAO 0xFBcb580DD6D64fbF7caF57FB0439502412324179
Expand Down
2 changes: 1 addition & 1 deletion docs/dapp/sapphire/browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Now, you can deploy the contract on the Testnet with the private key of the
account holding some [TEST tokens]:

```shell
PRIVATE_KEY="0x..." npx hardhat run scripts/deploy.js --network sapphire_testnet
PRIVATE_KEY="0x..." npx hardhat run scripts/deploy.js --network sapphire-testnet
```

This will compile the contract and deploy it on the Testnet. In addition
Expand Down
4 changes: 2 additions & 2 deletions docs/dapp/sapphire/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ index 414e974..49c95f9 100644
const config: HardhatUserConfig = {
solidity: "0.8.17",
+ networks: {
+ sapphire_testnet: {
+ 'sapphire-testnet': {
+ // This is Testnet! If you want Mainnet, add a new network config item.
+ url: "https://testnet.sapphire.oasis.dev",
+ accounts: process.env.PRIVATE_KEY
Expand Down Expand Up @@ -155,7 +155,7 @@ Pretty cool if you ask me!
Anyway, make it happen by running

```shell
PRIVATE_KEY="0x..." npx hardhat run scripts/run-vigil.ts --network sapphire_testnet
PRIVATE_KEY="0x..." npx hardhat run scripts/run-vigil.ts --network sapphire-testnet
```

And if you see something like the following, you'll know you're well on the road
Expand Down

0 comments on commit 9f01156

Please sign in to comment.