Skip to content

Commit

Permalink
Merge branch '1.x' into release/1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
nivida committed Jan 27, 2020
2 parents e68246e + 0b657c2 commit dc62d7e
Show file tree
Hide file tree
Showing 26 changed files with 1,568 additions and 774 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ packages/web3/dist/
lerna-debug.log
!./dist/web3.min.js
.nyc_output/
build/
contracts/
migrations/
truffle-config.js
test/config/ensAddresses.json
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ matrix:
env: TEST=e2e_ganache
- node_js: 10
env: TEST=e2e_mosaic
- node_js: 10
env: TEST=e2e_ens
- node_js: 10
env: TEST=e2e_browsers
addons:
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,17 @@ Released with 1.0.0-beta.37 code base.
- Prefer receipt status to code availability on contract deployment (#3298)

## [Unreleased]

## [1.2.6]

### Added

- ENS module extended with the possibility to add a custom registry (#3301)

### Changed

- Ensure '0x' prefix is existing for Accounts.sign and Accounts.privateKeyToAccount (#3041)

### Fixed

- Add missing subscription.on('connected') TS type definition (#3319)
3 changes: 2 additions & 1 deletion docs/web3-eth-accounts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ privateKeyToAccount

.. code-block:: javascript
web3.eth.accounts.privateKeyToAccount(privateKey);
web3.eth.accounts.privateKeyToAccount(privateKey [, ignoreLength ]);
Creates an account object from a private key.

Expand All @@ -103,6 +103,7 @@ Parameters
----------

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

-------
Returns
Expand Down
29 changes: 29 additions & 0 deletions docs/web3-eth-ens.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,35 @@ The ``web3.eth.ens`` functions let you interacting with ENS.

------------------------------------------------------------------------------

registryAddress
=====================

.. code-block:: javascript
web3.eth.ens.registryAddress;
The ``registryAddress`` property can be used to define a custom registry address when you are connected to an unknown chain.

.. note::
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.

-------
Returns
-------

``String`` - The address of the custom registry.

-------
Example
-------

.. code-block:: javascript
web3.eth.ens.registryAddress;
> "0x314159265dD8dbb310642f98f50C066173C1259b"
------------------------------------------------------------------------------

registry
=====================

Expand Down
Loading

0 comments on commit dc62d7e

Please sign in to comment.