sponnet / locals-faucetserver

a (testnet) Ether faucet with a React frontend and a REST API
MIT License
155 stars 71 forks source link

Auto populate address from the web3 #7

Closed vikmeup closed 6 years ago

vikmeup commented 6 years ago

I'm using Trust Wallet(web3 browser on mobile), based on the network we present faucet to get test ether. Would it be possible to auto-populate address from web3.accounts[0] ?

Thanks

simulator screen shot - iphone x - 2018-04-29 at 19 03 16

sponnet commented 6 years ago

Great idea ! I added it. Try it out, let me know if it works. I tested with metamask and that seems to be OK. http://faucet.ropsten.be:3001/

Changes here : https://github.com/sponnet/locals-faucetserver/commit/6fce281e33553c7e90301c2bcb6c0e638894d900

vikmeup commented 6 years ago

@sponnet awesome! Looks great. Tested it on Trust!