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

web3.eth.accounts.wallet typings and documentation #2591

Closed
winter38 opened this issue Mar 27, 2019 · 2 comments · Fixed by #2592
Closed

web3.eth.accounts.wallet typings and documentation #2591

winter38 opened this issue Mar 27, 2019 · 2 comments · Fixed by #2592
Labels
Bug Addressing a bug

Comments

@winter38
Copy link

Description

I am trying update web3 lib from web3.1.0.0-beta.33 to current version (web3.js: 1.0.0 - beta.50).

web3.eth.accounts.wallet - i can't figure that class.
in docs - https://web3js.readthedocs.io/en/1.0/web3-eth-accounts.html#wallet - there is length
in git - https://github.com/ethereum/web3.js/blob/1.0/packages/web3-eth-accounts/src/models/Wallet.js - there is accountsIndex
in typings - there nothing except methods

in old code i used

web3.eth.accounts.wallet.load(password, keyname)
if (web3.eth.accounts.wallet.length){
   // any check
}

Versions

  • web3.js: 1.0.0 - beta.50
@nivida nivida added the Bug Addressing a bug label Mar 27, 2019
@nivida
Copy link
Contributor

nivida commented Mar 27, 2019

Thanks for opening this issue! I'll fix and release it asap.

@davidbongcc
Copy link

Does Web3.py have this similar function(web3.eth.accounts.wallet) in the library? How can I create a wallet using web3.py?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Addressing a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants