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

Allocate empty object when doing Ethereum/ERC20 login #153

Merged
merged 78 commits into from
Dec 23, 2018

Conversation

Lucioric2000
Copy link

When adding an ethereum coin, 0 balance is shown in a wallet, and an error message is shown in the console. The error message is that is tried to add a property to api.eth.connect when it contains a null value. For avoiding this situation, api.eth.connect must be assigned to an empty object when starting to work with a Ethereum wallet, this is, at login.
I also deleted the Agama installer file that is for my local fork, and created a small Python script that generates the development version string. But then is is needed to have Python installed in the system that does the install. If someone can convert the Python script (buildscripts/devversion.py) to a shell one...

Lucio Montero added 30 commits October 23, 2018 12:02
Update branch fullapidev with the updated upstream 'dev'
…llapidev

Conflicts:
	gui/EasyDEX-GUI
	package.json
…ed more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automatingAdded more function to automating
@pbca26
Copy link

pbca26 commented Dec 8, 2018

it's not safe to expose a token
it can only be read by a render window
otherwise any external script can take control over API and empty funds

Copy link
Author

@Lucioric2000 Lucioric2000 left a comment

Choose a reason for hiding this comment

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

ok, I deleted the file that expose the token and its reference.

@Lucioric2000
Copy link
Author

This pull request was not about exposing the token, was about correcting a bug in the Eth/erc20 coins affter logging out and logging in again.

@Lucioric2000
Copy link
Author

I removed the files that exposed the token.

@Lucioric2000
Copy link
Author

The change that I wanted to do as a collaboration to the software is adding the line:
api.eth.connect = {};
after line 13 of routes/api/eth/auth.js

@pbca26
Copy link

pbca26 commented Dec 11, 2018

thanks i added this change after you pointed out this bit
i will try to review the pr soon

@pbca26 pbca26 merged commit 90305ca into KomodoPlatform:dev Dec 23, 2018
Lucioric2000 pushed a commit to Lucioric2000/Agama that referenced this pull request Mar 6, 2019
Allocate empty object when doing Ethereum/ERC20 login
pbca26 pushed a commit to pbca26/Agama that referenced this pull request Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants