Skip to content

Commit

Permalink
flow evm is really flow previewnet (#642)
Browse files Browse the repository at this point in the history
* flow evm is really flow previewnet

* revert gateway name

* update variable name for clarity
  • Loading branch information
bthaile committed Mar 7, 2024
1 parent f55b6fd commit 25bbd62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/evm/build/guides/deploy-contract/using-hardhat.md
Expand Up @@ -105,7 +105,7 @@ Deploying:
3. Create a `deploy.ts` file in `scripts` directory.
4. Paste in the following TypeScript code.

```typeScript
```javascript
import { ethers } from "hardhat";

async function main() {
Expand Down Expand Up @@ -141,7 +141,7 @@ HelloWorld address: 0x3Fe94f43Fb5CdB8268A801f274521a07F7b99dfb

Now, we want to get the greeting from the deployed `HelloWorld` smart contract.

```TypeScript
```javascript
import { ethers } from "hardhat";
import HelloWorldABI from "../artifacts/contracts/HelloWorld.sol/HelloWorld.json";

Expand Down Expand Up @@ -176,7 +176,7 @@ The greeting is: Hello, World!

Next, we'll add a script to update the greeting and log it.

```TypeScript
```javascript
import { ethers } from "hardhat";
import HelloWorldABI from "../artifacts/contracts/HelloWorld.sol/HelloWorld.json";

Expand Down
6 changes: 3 additions & 3 deletions src/components/addNetworkButton.tsx
Expand Up @@ -7,7 +7,7 @@ import {
export const AddNetworkButton = () => {
const hasEthereum = window?.ethereum !== undefined;

const addFlowEVM = async () => {
const addFlowPreviewnet = async () => {
try {
// Define your network details here
await window?.ethereum?.request({
Expand All @@ -30,13 +30,13 @@ export const AddNetworkButton = () => {
],
});
} catch (error) {
console.error('Could not add Flow EVM', error);
console.error('Could not add Flow Previewnet', error);
}
};

// eslint-disable-next-line @typescript-eslint/no-misused-promises
return hasEthereum ? (
<Button className="my-5 " variant="secondary" onClick={addFlowEVM}>
<Button className="my-5 " variant="secondary" onClick={addFlowPreviewnet}>
Add Flow Previewnet Network
</Button>
) : (
Expand Down

0 comments on commit 25bbd62

Please sign in to comment.