You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: RELEASE.md
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -36,8 +36,8 @@ Further details about versioning can be found in the [semver 2.0.0 specification
36
36
-`bumped-version` of release branch should be of main web3 package.
37
37
3.`yarn`: Verify all dependencies have been installed
38
38
4. Bump packages version numbers using `lerna version --no-push --no-private --no-git-tag-version` . This will update package versions and also run lifecycle scripts.
39
-
- It will prompt for new version , modify package metadata and run life cycle scripts (in our case `version`), for bootstrapping lerna will use underlying yarn.
40
-
5. Update each package's and also root `CHANGELOG.md`:
39
+
- It will prompt for new version , modify package metadata and run lifecycle scripts (in our case `version`), for bootstrapping lerna will use underlying yarn.
40
+
5. Update each package's and also root `CHANGELOG.md`:
41
41
42
42
5.A. If there are any changes in package during release PR e.g. dependency updated that effects package, add entry in changelog under `## [Unreleased]` of that package's changelog.
43
43
@@ -61,19 +61,20 @@ Further details about versioning can be found in the [semver 2.0.0 specification
61
61
- In the release description, copy all entries in `CHANGELOG.md` for the version being released
62
62
63
63
- Click `Save draft`
64
-
64
+
65
65
12. Open pull request to merge branch created in `Step 2` (`release/bumped-version`) into `4.x`
66
66
13. Wait for all tests to pass in github CI/CD , If there are any unusual warnings or errors in logs, discuss with team
67
67
14. When sufficient approvals have been met, publish draft release created in `Step 11`
68
68
15. Publish on NPM.
69
+
69
70
- login in NPM and verify you are logged in with right user and in right dir
70
-
71
+
71
72
- If you want to publish `latest` tag release, run `npx lerna publish from-package --ignore-scripts` in the root directory to publish packages to NPM.
72
-
73
-
- If you want to publish any other tag, run `npx lerna publish from-package --ignore-scripts --dist-tag <<TAG>>` in the root directory e.g. `rc`
74
-
73
+
74
+
- If you want to publish any other tag, run `npx lerna publish from-package --ignore-scripts --dist-tag <<TAG>>` in the root directory e.g. `rc`
75
+
75
76
IMPORTANT: Replace `<<TAG>>` with required tag in above command, e.g. if publishing `RC`, use following command:
Copy file name to clipboardExpand all lines: docs/docs/glossary/index.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ The `Contract` class is an important class in the `web3-eth-contract` package, a
24
24
25
25
The JSON interface is a `JSON` object describing the [Application Binary Interface (ABI)](https://docs.soliditylang.org/en/develop/abi-spec.html) for an Ethereum smart contract.
26
26
27
-
Using this JSON interface, web3.js is able to create a JavaScript object representing the smart contract, its methods and events using the `web3.eth.Contract` object.
27
+
Using this JSON interface, web3.js is able to create a JavaScript object representing the smart contract, its methods and events using the `web3.eth.Contract` object.
Some providers are, by design, always connected. Therefor, they can communicate changes with the user through events. Actually, among the 3 providers, `HttpProvider` is the only one that does not support event. And the other 2:
8
+
Some providers are, by design, always connected. Therefore, they can communicate changes with the user through events. Actually, among the 3 providers, `HttpProvider` is the only one that does not support event. And the other 2:
9
9
[WebSocketProvider](/api/web3-providers-ws/class/WebSocketProvider) and [IpcProvider](/api/web3-providers-ipc/class/IpcProvider) enable the user to listen to emitted events.
10
10
11
11
Actually, the events can be categorized as follows ([according to EIP 1193](https://eips.ethereum.org/EIPS/eip-1193#rationale)):
Copy file name to clipboardExpand all lines: docs/docs/guides/05_smart_contracts/tips_and_tricks.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ The Solidity code:
39
39
40
40
pragma solidity >=0.8.20 <0.9.0;
41
41
42
-
contract TestOverlading {
42
+
contract TestOverloading {
43
43
function funcWithParamsOverloading(uint256 userId) public pure returns (string memory) {
44
44
return "called for the parameter with the type 'uint256'";
45
45
}
@@ -138,6 +138,6 @@ Multiple methods found that are compatible with the given inputs. Found 2 compat
138
138
139
139
Future releases of web3.js, specifically version 5.x, will replace the warning with an error whenever multiple methods match a call without explicit overloading. This aims to foster greater precision in method invocation.
140
140
141
-
### Key Takeaway for function overlading: Method Specification
141
+
### Key Takeaway for function overloading: Method Specification
142
142
143
143
When working with overloaded smart contract methods, it's imperative to specify the intended method by appending its parameter types within parentheses, such as `funcWithParamsOverloading(address)` versus `funcWithParamsOverloading(uint256)`. This ensures the accuracy of method invocation, leading to more efficient and clearer contract interactions.
0 commit comments