Skip to content

Commit 43223e0

Browse files
Apply suggestions from code review
Co-authored-by: Dawn Kelly <[email protected]>
1 parent f9d1e6b commit 43223e0

File tree

1 file changed

+4
-4
lines changed
  • develop/smart-contracts/evm-toolkit/libraries

1 file changed

+4
-4
lines changed

develop/smart-contracts/evm-toolkit/libraries/web3-js.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Learn how to interact with the Asset Hub chain using Web3.js, deplo
77

88
## Introduction
99

10-
Interacting with blockchains typically requires an interface between your application and the network itself. [Web3.js](https://web3js.readthedocs.io/){target=\_blank} offers this interface through a comprehensive collection of libraries, facilitating seamless interaction with the nodes using HTTP or WebSocket protocols. This guide illustrates how to utilize Web3.js specifically for interactions with the Asset Hub chain.
10+
Interacting with blockchains typically requires an interface between your application and the network. [Web3.js](https://web3js.readthedocs.io/){target=\_blank} offers this interface through a comprehensive collection of libraries, facilitating seamless interaction with the nodes using HTTP or WebSocket protocols. This guide illustrates how to utilize Web3.js specifically for interactions with the Asset Hub chain.
1111

1212
## Set Up the Project
1313

@@ -48,7 +48,7 @@ With the Web3 provider set up, you can start querying the blockchain.
4848

4949
For instance, to fetch the latest block number of the chain, you can use the following code snippet:
5050

51-
???- "fetchLastBlock.js"
51+
???- code "fetchLastBlock.js"
5252

5353
```javascript title="fetchLastBlock.js"
5454
--8<-- 'code/develop/smart-contracts/evm-toolkit/libraries/web3-js/fetchLastBlock.js'
@@ -62,13 +62,13 @@ Asset Hub requires contracts to be compiled to [PolkaVM](/polkadot-protocol/smar
6262
npm install --save-dev @parity/revive
6363
```
6464

65-
Heres a simple storage contract that you can use to follow the process:
65+
Here's a simple storage contract that you can use to follow the process:
6666

6767
```solidity title="Storage.sol"
6868
--8<-- 'code/develop/smart-contracts/evm-toolkit/libraries/web3-js/Storage.sol'
6969
```
7070

71-
With that, you can now create a `compile.js` snippet that transform your solidity code into PolkaVM bytecode:
71+
With that, you can now create a `compile.js` snippet that transforms your solidity code into PolkaVM bytecode:
7272

7373
```javascript title="compile.js"
7474
--8<-- 'code/develop/smart-contracts/evm-toolkit/libraries/web3-js/compile.js'

0 commit comments

Comments
 (0)