Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit dc62d7e

Browse files
authored
Merge branch '1.x' into release/1.2.5
2 parents e68246e + 0b657c2 commit dc62d7e

26 files changed

+1568
-774
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ packages/web3/dist/
1818
lerna-debug.log
1919
!./dist/web3.min.js
2020
.nyc_output/
21+
build/
22+
contracts/
23+
migrations/
24+
truffle-config.js
25+
test/config/ensAddresses.json

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ matrix:
2020
env: TEST=e2e_ganache
2121
- node_js: 10
2222
env: TEST=e2e_mosaic
23+
- node_js: 10
24+
env: TEST=e2e_ens
2325
- node_js: 10
2426
env: TEST=e2e_browsers
2527
addons:

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,17 @@ Released with 1.0.0-beta.37 code base.
126126
- Prefer receipt status to code availability on contract deployment (#3298)
127127

128128
## [Unreleased]
129+
130+
## [1.2.6]
131+
132+
### Added
133+
134+
- ENS module extended with the possibility to add a custom registry (#3301)
135+
136+
### Changed
137+
138+
- Ensure '0x' prefix is existing for Accounts.sign and Accounts.privateKeyToAccount (#3041)
139+
140+
### Fixed
141+
142+
- Add missing subscription.on('connected') TS type definition (#3319)

docs/web3-eth-accounts.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ privateKeyToAccount
9494

9595
.. code-block:: javascript
9696
97-
web3.eth.accounts.privateKeyToAccount(privateKey);
97+
web3.eth.accounts.privateKeyToAccount(privateKey [, ignoreLength ]);
9898
9999
Creates an account object from a private key.
100100

@@ -103,6 +103,7 @@ Parameters
103103
----------
104104

105105
1. ``privateKey`` - ``String``: The private key to convert.
106+
1. ``ignoreLength`` - ``Boolean``: If set to true does the ``privateKey`` length not get validated.
106107

107108
-------
108109
Returns

docs/web3-eth-ens.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,35 @@ The ``web3.eth.ens`` functions let you interacting with ENS.
88

99
------------------------------------------------------------------------------
1010

11+
registryAddress
12+
=====================
13+
14+
.. code-block:: javascript
15+
16+
web3.eth.ens.registryAddress;
17+
18+
The ``registryAddress`` property can be used to define a custom registry address when you are connected to an unknown chain.
19+
20+
.. note::
21+
If no address is defined will it try to detect the registry on the chain you are currently connected with and on the call of ``setProvider`` in the Eth module will it keep the defined address and use it for the ENS module.
22+
23+
-------
24+
Returns
25+
-------
26+
27+
``String`` - The address of the custom registry.
28+
29+
-------
30+
Example
31+
-------
32+
33+
.. code-block:: javascript
34+
35+
web3.eth.ens.registryAddress;
36+
> "0x314159265dD8dbb310642f98f50C066173C1259b"
37+
38+
------------------------------------------------------------------------------
39+
1140
registry
1241
=====================
1342

0 commit comments

Comments
 (0)