Skip to content

Commit

Permalink
More cleanup on guide (#616)
Browse files Browse the repository at this point in the history
* More cleanup on guide

* Fix

---------

Co-authored-by: Chase Fleming <[email protected]>
  • Loading branch information
chasefleming and chasefleming authored Feb 29, 2024
1 parent 49ae52f commit 195304d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
14 changes: 7 additions & 7 deletions docs/evm/build/guides/deploy-contract/using-hardhat.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: [`<PRIVATE_KEY>`],
gas: 500000, // Example gas limit
Expand Down Expand Up @@ -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
```
Expand Down Expand Up @@ -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!
```

Expand Down Expand Up @@ -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!
Expand Down
1 change: 0 additions & 1 deletion docs/evm/build/guides/deploy-contract/using-remix.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ async function getGreeting() {

// Execute the function
getGreeting();

```
1. Create a new file under `scripts`.
Expand Down
2 changes: 1 addition & 1 deletion docs/evm/using.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 195304d

Please sign in to comment.