Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.

Bugfix/eth get address #11

Merged
merged 5 commits into from
Jan 17, 2019
Merged

Bugfix/eth get address #11

merged 5 commits into from
Jan 17, 2019

Conversation

keepkeyjon
Copy link
Contributor

@spiceboi plz build... protobuf stuff won't compile for me.

@keepkeyjon keepkeyjon requested a review from spiceboi January 16, 2019 21:31
src/keepkey.ts Outdated
const { addressNList } = (response as Messages.EthereumGetAddress).toObject()
return addressNList.join('')
const { address, addressStr } = (response as Messages.EthereumAddress).toObject()
return addressStr || address as string
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
return addressStr || address as string
return addressStr || ('0x' + (address as string))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

... because addressStr has that in it, but address does not.

@spiceboi spiceboi merged commit a182ad3 into master Jan 17, 2019
@spiceboi spiceboi deleted the bugfix/eth-get-address branch January 17, 2019 18:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants