Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deploy a smart contract page #1580

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions docs/build/isc/v1.1/docs/how-tos/deploy-a-smart-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ project. Here's a step-by-step guide:
```
5. Create a Hardhat Project by running the following command:
```bash
npx hardhat
npx hardhat init
```

Select "Create a basic sample project" when prompted and answer the setup questions (you can just press enter to
Select `Create a JavaScript project` (or whatever applies to your project) when prompted and answer the setup questions (you can press enter to
accept defaults).

### 2. Add Your Contract
Expand All @@ -130,9 +130,7 @@ project. Here's a step-by-step guide:
const Counter = await ethers.getContractFactory("Counter");
const counter = await Counter.deploy();

await counter.deployed();

console.log("Counter deployed to:", counter.address);
console.log("Counter deployed to:", await counter.getAddress());
}

main()
Expand All @@ -149,6 +147,19 @@ project. Here's a step-by-step guide:

<HardhatConfig/>

:::info Export the Metamask Private Key

1. Click on the Metamask logo in the upper right corner.
2. Select the account you want to export.
3. On the account page, click the menu (three dots) in the upper right corner, then click the "Account Details" button.
4. Click on "Export Private Key".
5. Enter your wallet password to access your private key and click `Confirm` to continue.
6. Your private key will now be displayed. Click to copy it and save it in a safe place.

You can find more information in the [official Metamask Documentation](https://support.metamask.io/managing-my-wallet/secret-recovery-phrase-and-private-keys/how-to-export-an-accounts-private-key/).

:::

:::caution

Currently, there is no validation service available for EVM/Solidity smart contracts on IOTA Smart Contracts, which is
Expand Down
21 changes: 16 additions & 5 deletions docs/build/isc/v1.3-alpha/docs/how-tos/deploy-a-smart-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ project. Here's a step-by-step guide:
```
5. Create a Hardhat Project by running the following command:
```bash
npx hardhat
npx hardhat init
```

Select "Create a basic sample project" when prompted and answer the setup questions (you can just press enter to
Select `Create a JavaScript project` (or whatever applies to your project) when prompted and answer the setup questions (you can press enter to
accept defaults).

### 2. Add Your Contract
Expand All @@ -130,9 +130,7 @@ project. Here's a step-by-step guide:
const Counter = await ethers.getContractFactory("Counter");
const counter = await Counter.deploy();

await counter.deployed();

console.log("Counter deployed to:", counter.address);
console.log("Counter deployed to:", await counter.getAddress());
}

main()
Expand All @@ -149,6 +147,19 @@ project. Here's a step-by-step guide:

<HardhatConfig/>

:::info Export the Metamask Private Key

1. Click on the Metamask logo in the upper right corner.
2. Select the account you want to export.
3. On the account page, click the menu (three dots) in the upper right corner, then click the "Account Details" button.
4. Click on "Export Private Key".
5. Enter your wallet password to access your private key and click `Confirm` to continue.
6. Your private key will now be displayed. Click to copy it and save it in a safe place.

You can find more information in the [official Metamask Documentation](https://support.metamask.io/managing-my-wallet/secret-recovery-phrase-and-private-keys/how-to-export-an-accounts-private-key/).

:::

:::caution

Currently, there is no validation service available for EVM/Solidity smart contracts on IOTA Smart Contracts, which is
Expand Down
Loading