leopoldjoy / react-ethereum-dapp-example Goto Github PK
View Code? Open in Web Editor NEWA starter boilerplate for an Ethereum dapp using web3.js v1.0, truffle, react, and parity
License: MIT License
A starter boilerplate for an Ethereum dapp using web3.js v1.0, truffle, react, and parity
License: MIT License
I first faced this (#2) issue and followed the advice to use the 1.0 branch instead. I did complete the installation and successfully compiled it.
But, when I run truffle migrate
I get the following error:
Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.
Starting migrations...
======================
> Network name: 'development'
> Network id: 17
> Block gas limit: 8000000 (0x7a1200)
1_initial_migration.js
======================
Deploying 'Migrations'
----------------------
Error: *** Deployment Failed ***
"Migrations" -- Returned error: Your account is locked. Unlock the account via CLI, personal_unlockAccount or use Trusted Signer..
at /home/razor/.npm-global/lib/node_modules/truffle/build/webpack:/packages/deployer/src/deployment.js:364:1
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Migration._deploy (/home/razor/.npm-global/lib/node_modules/truffle/build/webpack:/packages/migrate/migration.js:70:1)
at Migration._load (/home/razor/.npm-global/lib/node_modules/truffle/build/webpack:/packages/migrate/migration.js:57:1)
at Migration.run (/home/razor/.npm-global/lib/node_modules/truffle/build/webpack:/packages/migrate/migration.js:167:1)
at Object.runMigrations (/home/razor/.npm-global/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:148:1)
at Object.runFrom (/home/razor/.npm-global/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:110:1)
at Object.run (/home/razor/.npm-global/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:87:1)
at runMigrations (/home/razor/.npm-global/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate.js:253:1)
at /home/razor/.npm-global/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate.js:218:1
Truffle v5.1.32 (core: 5.1.32)
Node v12.18.1
Operating System: Pop_OS 19.10
On the first run, I got the following error: Uncaught TypeError: _web2.default is not a constructor
After digging around a bit I was able to overcome it by replacing this:
web3 = new Web3(window.web3.currentProvider);
on line 15 of /src/web3.js
with this:
web3 = new Web3.providers.QtSyncProvider();
As I'm new to dApps I'm still learning how web3 works, so I can't say I understand the effect of the change or whether it's a valid solution to this problem. Any ideas as to why the error occurs and how to properly fix it?
I suppose, more specifically, the purpose of this code seems to be to "Instantiate new web3 local instance" according to the notation. What is a "local" vs a "remote" instance of web3? I notice that the other provider available is the HttpProvider (as opposed to QtSyncProvider), so am I correct in assuming that Http = remote and QtSync = local?
Hello,
I'm Nimbi of MountainT Development. I have someone wanting to get some help with their website using Blockchain and was wondering if you'd be open to helping them. If so you can contact them via Discord.
Their Discord usertag is: Dental Visits LLC#7291
The website they are needing help with is: www.dentalvisits.com
The result of simply doing npm install
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: concurrently "npm run build" "npm run build-dlls"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/digid/.npm/_logs/2018-04-05T17_15_49_861Z-debug.log
Version info
npm 5.6.0
Mac OSX High Sierra 10.13.3
17.4.0 Darwin Kernel Version 17.4.0: Tue Dec 19 10:52:05 PST 2017; root:xnu-4570.47.16~1/RELEASE_X86_64 x86_64
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.