Skip to content

Commit

Permalink
Merge branch 'main' into brian-doyle/update-why-flow
Browse files Browse the repository at this point in the history
  • Loading branch information
briandoyle81 committed Oct 23, 2024
2 parents 00943db + 66b83af commit 674f368
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions docs/build/getting-started/hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,11 @@ Let's break down what this script does:
- **Return Statement**: `return HelloWorld.greeting` accesses the greeting variable from the `HelloWorld` contract and returns its value.

### Steps to Execute the Script

- **Open the Flow Runner**: Click the <VerticalSplit /> icon to orient the Flow Runner editor vertically. The Flow Runner is an online tool that allows you to write and execute Cadence scripts directly in your browser.
- **Copy the Script**: Copy the script above into the Flow Runner's input area.

- **Run the Script**: Click the Run button to execute the script.
- **View the Output**: Observe the output returned by the script. You should see the current value of the `greeting` variable, which is `"Hello, World!"`.

<iframe sandbox className="flow-runner-iframe" src="https://run.dnz.dev?colormode=dark&output=horizontal&outputSize=200" width="100%" height="400px"></iframe>
<iframe sandbox className="flow-runner-iframe" src="https://run.dnz.dev/snippet/2b3ec75d38d01dfa?colormode=dark&output=horizontal&outputSize=400" width="100%" height="400px"></iframe>

## Understanding the `HelloWorld` Contract

Expand Down
4 changes: 2 additions & 2 deletions src/components/addNetworkButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const AddNetworkButton = (): JSX.Element => {
method: 'wallet_addEthereumChain',
params: [
{
chainId: id.toString(16), // '0x2eb', // 747 in hexadecimal
chainId: `0x${id.toString(16)}`, // '0x2eb', // 747 in hexadecimal
chainName: name,
rpcUrls,
iconUrls: [
Expand All @@ -72,7 +72,7 @@ export const AddNetworkButton = (): JSX.Element => {
name: 'Flow',
symbol: 'FLOW',
decimals: 18,
},
},
blockExplorerUrls,
},
],
Expand Down

0 comments on commit 674f368

Please sign in to comment.