wangsir0624 / ballot Goto Github PK
View Code? Open in Web Editor NEW基于以太坊区块链开发的投票应用
License: MIT License
基于以太坊区块链开发的投票应用
License: MIT License
1.代码中sol用的是^0.4.17,但是语法却不符合该版本的语法规范,需要0.4.22以后的solc才可以。
2.我看到作者commit记录,最开始$.ajaxJSON用的是..build/contracts路径,后面改成了contrats/路径,似乎还是应该用..build/contracts?要么人工去copy到src目录下
3.代码中何处调用了钱包?发起投票会报如下错误:
Error: invalid address
at v (web3.min.js:2:4288)
at l (web3.min.js:2:2260)
at web3.min.js:2:14456
at Array.map (<anonymous>)
at i.formatInput (web3.min.js:2:14429)
at i.toPayload (web3.min.js:2:14658)
at r.e [as sendTransaction] (web3.min.js:2:14964)
at c.sendTransaction (web3.min.js:2:6896)
at c.execute (web3.min.js:2:7725)
at truffle-contract.js:190:16
猜测原因是没有调用钱包签名直接发起的交易?(迷惑)难道不需要签名吗??
最后一个疑问,这个项目star有几十个,也有很多fork,大家都没有遇到相关问题吗?(可能是我太菜
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.