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

wrapper: Allow wrapper to set accounts manually #93

Merged
merged 4 commits into from
Mar 18, 2018
Merged

wrapper: Allow wrapper to set accounts manually #93

merged 4 commits into from
Mar 18, 2018

Conversation

onbjerg
Copy link
Contributor

@onbjerg onbjerg commented Mar 16, 2018

Closes #91

Also adds accounts RPC message, closes #62

@onbjerg onbjerg added the bug Something isn't working label Mar 16, 2018
@onbjerg onbjerg self-assigned this Mar 16, 2018
@onbjerg onbjerg requested a review from sohkai March 16, 2018 13:53
* @param {Array<string>} accounts
* @return {void}
*/
setAccounts (accounts) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little bit confused about the type accounts should be; getAccounts() apparently returns a Promise but setAccounts() takes in an array?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getAccounts returns a promise because it falls back to calling via Web3, which returns a promise.

I will move accounts as an optional parameter to init, but getAccounts will always be a promise.

@onbjerg
Copy link
Contributor Author

onbjerg commented Mar 18, 2018

works w tx pathing in sandbox

Copy link
Contributor

@sohkai sohkai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@onbjerg onbjerg merged commit 91274b5 into master Mar 18, 2018
@onbjerg onbjerg deleted the accounts branch April 10, 2018 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ability to set available accounts Add a way to get the addresses the user controls
2 participants