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
Changes from 1 commit
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
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" when prompted and answer the setup questions (you can just press enter to
Dr-Electron marked this conversation as resolved.
Show resolved Hide resolved
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,28 @@ project. Here's a step-by-step guide:

<HardhatConfig/>

:::info Private Key
Ginowine marked this conversation as resolved.
Show resolved Hide resolved

How to export the MetaMask private key of an account?

Ginowine marked this conversation as resolved.
Show resolved Hide resolved
- Click on the logo in the upper right corner
Ginowine marked this conversation as resolved.
Show resolved Hide resolved

- Select the account you want to export
Ginowine marked this conversation as resolved.
Show resolved Hide resolved

- On the account page, click the menu (three dots) in the upper right corner, then click the "Account Details" button:
Ginowine marked this conversation as resolved.
Show resolved Hide resolved

- Click "Export Private Key"
Ginowine marked this conversation as resolved.
Show resolved Hide resolved

- To access your private key, you will now need to enter your wallet password. When done, click Confirm to continue.
Ginowine marked this conversation as resolved.
Show resolved Hide resolved

- Your private key will now be displayed. Click to copy it and save it in a safe place. (Note: For obvious reasons, we didn't show it in the screenshots below - but yours will be there.)
Ginowine marked this conversation as resolved.
Show resolved Hide resolved
Ginowine marked this conversation as resolved.
Show resolved Hide resolved

- Click close icon on top to close the screen.
Ginowine marked this conversation as resolved.
Show resolved Hide resolved

Follow [this article](https://helpwithpenny.com/export-and-import-metamask-private-key/) for further detail.
Ginowine marked this conversation as resolved.
Show resolved Hide resolved

:::

:::caution

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