Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Typos #7310

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ In the code editor you'll find:
- `getNumber()`: this function will return the current value of the `number` variable.
- `counterABI.json`: the ABI of the ContractCounter.sol
- `counterBytecode.json`: the compiled Bytecode of the ContractCounter.sol
- `main.js`: here you will find 3 funtions:
- `main.js`: here you will find 3 functions:

- `deploy()`: sample script to deploy the smart contract using the ABI and Bytecode
- `getNumber()`: sample script to call the reading function getNumber() of the smart contract
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This guide is most likely for advanced users who are connecting to a node that p
:::important
If you are the developer who provides custom subscriptions to users. We encourage you to develop a web3.js Plugin after you follow the guide below. However, you can find how to develop a plugin at [web3.js Plugin Developer Guide](/guides/web3_plugin_guide/plugin_authors).

And even if you are not the developer who provides this custom subscription, we encourage you to write a web3.js plugin for the custom subscription, and publish it to the npm package registry. This way you can help the community. And they might contribute to your repository helping for things like: feature addition, maintenance, and bug detection.
And even if you are not the developer who provides this custom subscription, we encourage you to write a web3.js plugin for the custom subscription, and publish it to the npm package registry. This way you can help the community. And they might contribute to your repository by helping for things like: feature addition, maintenance, and bug detection.
:::

## Implementing the Subscription
Expand Down Expand Up @@ -114,7 +114,7 @@ To subscribe, you need to pass the custom subscriptions to the `Web3`. And then

```ts
const CustomSubscriptions = {
// the key (`custom`) is what you chose to use when you call `web3.subscriptionManager.subscribe`.
// the key (`custom`) is what you choose to use when you call `web3.subscriptionManager.subscribe`.
// the value (`CustomSubscription`) is your class name.
custom: MyCustomSubscription,
// you can have as many custom subscriptions as you like...
Expand Down
Loading