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

Update web3js.md #797

Merged
merged 3 commits into from
Nov 26, 2024
Merged
Changes from 2 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
7 changes: 3 additions & 4 deletions docs/espace/tutorials/sdks/web3js.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
0xn1c0 marked this conversation as resolved.
Show resolved Hide resolved
sidebar_position: 2
title: web3.js
displayed_sidebar: eSpaceSidebar
Expand Down Expand Up @@ -313,7 +312,7 @@ const get = async () => {
console.log(`Making a call to contract at address: ${contractAddress}`);


const data = await incrementer.methods.number().call();
const data = await incrementer.methods.numericVal().call();
console.log(`The current number stored is: ${data}`);
};

Expand Down Expand Up @@ -344,7 +343,7 @@ const _value = 3;
const incrementer = new web3.eth.Contract(abi, contractAddress);


const incrementTx = incrementer.methods.increment(_value);
const incrementTx = incrementer.methods.increaseVal(_value);

const increment = async () => {
console.log(
Expand Down Expand Up @@ -382,4 +381,4 @@ import TabItem from '@theme/TabItem';


## Additional Resources:
- [**Web3.js Documentation**](https://web3js.readthedocs.io/en/v1.8.2/)
- [**Web3.js Documentation**](https://web3js.readthedocs.io/en/v1.8.2/)