opus-foundation / contracts Goto Github PK
View Code? Open in Web Editor NEWSmart contracts and demo site for Opus foundation
License: GNU General Public License v3.0
Smart contracts and demo site for Opus foundation
License: GNU General Public License v3.0
Hi guys,
On macOS, installed nodejs using brew.
$ cd contracts
$ npm install
npm WARN deprecated [email protected]: ๐ Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated [email protected]: ethereumjs-testrpc has been renamed to ganache-cli, please use this package from now on.
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git checkout 3.0.3
npm ERR! error: pathspec '3.0.3' did not match any file(s) known to git.
...
Hi Team,
npm run dev
npm ERR! missing script: dev
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/IOSDeveloper/.npm/_logs/2017-07-21T09_55_09_345Z-debug.log
iOSDeveloper:contracts IOSDeveloper$
/Users/IOSDeveloper/Desktop/contracts/node_modules/truffle/lib/commands/test.js:39
files = files.filter(function(file) {
^
TypeError: Cannot read property 'filter' of undefined
at /Users/IOSDeveloper/Desktop/contracts/node_modules/truffle/lib/commands/test.js:39:20
at onStat (/Users/IOSDeveloper/Desktop/contracts/node_modules/node-dir/lib/paths.js:149:21)
at FSReqWrap.oncomplete (fs.js:152:21)
3. Also "truffle migrate"
/Users/IOSDeveloper/Desktop/contracts/contracts/ERC23BasicToken.sol:20:28: : Unused local variable
function tokenFallback(address _from, uint256 _value, bytes _data) external {
^-----------^
,/Users/IOSDeveloper/Desktop/contracts/contracts/ERC23BasicToken.sol:20:43: : Unused local variable
function tokenFallback(address _from, uint256 _value, bytes _data) external {
^------------^
,/Users/IOSDeveloper/Desktop/contracts/contracts/ERC23BasicToken.sol:20:59: : Unused local variable
function tokenFallback(address _from, uint256 _value, bytes _data) external {
^----------^
,/Users/IOSDeveloper/Desktop/contracts/contracts/ERC23BasicToken.sol:72:25: : Unused local variable
function isContract(address _addr) returns (bool is_contract) {
^-----------^
Writing artifacts to ./build/contracts
Using network 'development'.
Error: Could not find built Migrations contract: Could not find artifacts for ./Migrations.sol from any sources
at Object.lastCompletedMigration (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:54982:23)
at Object.needsMigrating (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:55005:10)
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:81657:19
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:46796:9
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:33762:13
at /usr/local/lib/node_modules/truffle/build/cli.bundled.js:224637:9
at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:223413:13)
at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:225286:18)
at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:225576:12)
at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:225731:12)
I really interested in your project. Please give me some advice to get your demo project work on my machine.
Thanks,
Do
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.