Open WP-LKL opened 2 years ago
Run example demo
I followed the example README.md.
Running server logs the following in console when attempting to click login: Uncaught TypeError: web3.eth is undefined checkWeb3 http://localhost:8000/static/web3auth/js/web3auth.js:56 startLogin http://localhost:8000/login/:88 onclick http://localhost:8000/login/:1 web3auth.js:56:5
// web3auth.js function checkWeb3(callback) { // web3 = new Web3(window.ethereum) web3.eth.getAccounts(function (err, accounts) { // Check for wallet being locked if (err) { throw err; } callback(accounts.length !== 0); }); }
It seems that @krilarite has a branch with a more functional version: https://github.com/krilarite/django-web3-auth, that I have got to work correctly.
Description
Run example demo
What I Did
I followed the example README.md.
Running server logs the following in console when attempting to click login: Uncaught TypeError: web3.eth is undefined checkWeb3 http://localhost:8000/static/web3auth/js/web3auth.js:56 startLogin http://localhost:8000/login/:88 onclick http://localhost:8000/login/:1 web3auth.js:56:5