diff --git a/docs/evm/build/guides/deploy-contract/using-hardhat.md b/docs/evm/build/guides/deploy-contract/using-hardhat.md index 3ca5211b09..9fa63edc9d 100644 --- a/docs/evm/build/guides/deploy-contract/using-hardhat.md +++ b/docs/evm/build/guides/deploy-contract/using-hardhat.md @@ -51,7 +51,7 @@ import { HardhatUserConfig } from "hardhat/config"; const config: HardhatUserConfig = { solidity: "0.8.19", networks: { - previewNet: { + previewnet: { url: "https://previewnet.evm.nodes.onflow.org", accounts: [``], gas: 500000, // Example gas limit @@ -122,13 +122,13 @@ main() ``` -5. Run `npx hardhat run scripts/deploy.ts --network previewNet` in the project root. +5. Run `npx hardhat run scripts/deploy.ts --network previewnet` in the project root. 6. Get the deployed contract `address`. This address will be used in other scripts. Output should look like this: ```shell -❯ npx hardhat run scripts/deploy.ts --network previewNet +❯ npx hardhat run scripts/deploy.ts --network previewnet Deploying HelloWorld... HelloWorld address: 0x3Fe94f43Fb5CdB8268A801f274521a07F7b99dfb ``` @@ -161,10 +161,10 @@ main().catch((error) => { Steps: 1. Create a `getGreeting.ts` file in the `scripts` directory. 2. Paste contents of script above. Make sure to update the contract address with the one from deployment in earlier step. -3. Call script to get the greeting, `npx hardhat run scripts/getGreeting.ts --network previewNet` +3. Call script to get the greeting, `npx hardhat run scripts/getGreeting.ts --network previewnet` 4. The output should be as follows: ```shell -❯ npx hardhat run scripts/getGreeting.ts --network previewNet +❯ npx hardhat run scripts/getGreeting.ts --network previewnet The greeting is: Hello, World! ``` @@ -212,10 +212,10 @@ main().catch((error) => { Next, we'll add a script to update the greeting and log it. Here are the steps to follow: 1. Create an `updateGreeting.ts` script in the `scripts` directory. 2. Paste in the TypeScript above, Make sure to update the contract address with the one from deployment in earlier step. -3. Call the new script, `NEW_GREETING='Howdy!' npx hardhat run ./scripts/updateGreeting.ts --network previewNet` +3. Call the new script, `NEW_GREETING='Howdy!' npx hardhat run ./scripts/updateGreeting.ts --network previewnet` 4. The output should be ```shell -❯ NEW_GREETING='Howdy!' npx hardhat run ./scripts/updateGreeting.ts --network previewNet +❯ NEW_GREETING='Howdy!' npx hardhat run ./scripts/updateGreeting.ts --network previewnet The greeting is: Hello, World! Transaction hash: 0x03136298875d405e0814f54308390e73246e4e8b4502022c657f04f3985e0906 Greeting updated successfully! diff --git a/docs/evm/build/guides/deploy-contract/using-remix.md b/docs/evm/build/guides/deploy-contract/using-remix.md index f1b6074dda..a0779de4b2 100644 --- a/docs/evm/build/guides/deploy-contract/using-remix.md +++ b/docs/evm/build/guides/deploy-contract/using-remix.md @@ -98,7 +98,6 @@ async function getGreeting() { // Execute the function getGreeting(); - ``` 1. Create a new file under `scripts`. diff --git a/docs/evm/using.mdx b/docs/evm/using.mdx index 96b8484305..d9986a67d3 100644 --- a/docs/evm/using.mdx +++ b/docs/evm/using.mdx @@ -11,7 +11,7 @@ import {AddNetworkButton} from '@site/src/components/addNetworkButton'; ## (Coming Soon) [Flow Wallet](https://wallet.flow.com) -Flow Wallet is available on [Android](https://play.google.com/store/apps/details?id=io.outblock.lilico&hl=en_US&gl=US) and [iOS](https://apps.apple.com/ca/app/flow-core/id1644169603) apps, with desktop support using the Flow Wallet [Chrome extension](https://chromewebstore.google.com/detail/flow-reference-wallet/hpclkefagolihohboafpheddmmgdffjm). In addition to being able to transact in both FLowEVM and Cadence environments, Flow Wallet will also allow you to view and move assets between EVM and Cadence, making it possible to manage all your assets in one place. +Flow Wallet is available on [Android](https://play.google.com/store/apps/details?id=io.outblock.lilico&hl=en_US&gl=US) and [iOS](https://apps.apple.com/ca/app/flow-core/id1644169603) apps, with desktop support using the Flow Wallet [Chrome extension](https://chromewebstore.google.com/detail/flow-reference-wallet/hpclkefagolihohboafpheddmmgdffjm). In addition to being able to transact in both FlowEVM and Cadence environments, Flow Wallet will also allow you to view and move assets between EVM and Cadence, making it possible to manage all your assets in one place. To use Flow Wallet Chrome extension: