Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Lesson-6/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 硅谷live以太坊智能合约频道官方地址

### 第六课
37 changes: 37 additions & 0 deletions Lesson-6/assignment/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## payroll
A payroll system developed with React and Solidty for Ethereum Blockchain platform.

### Start step
1. Install dependencies `npm install -g truffle ethereumjs-testrpc`

1. Install [Metamask](https://metamask.io/)

1. Run `testrpc` in the payroll project directory

1. Add first account in testrpc to Metamask by importing private key

1. Run `truffle compile` in the payroll project directory

1. `truffle migrate` ditto

1. `npm run start` ditto

## FAQ
###1. Failed to compile. Error in ./src/App.js Module not found: 'antd'

* 需要安装antd库 `npm install antd --save`

###2. 为什么我addFund不用metamask能fire event,用了metamask就不行了,但fund都加成功了?
* 这儿有个BUG,启动网页之后不要在metamask里切换网络,要先把metatask切到测试网络后,重启浏览器。
> Finally, Metamask seems to have problems switching networks cleanly. After switching to the network you want to use, try closing all open Chrome windows (not just the window you're using Metamask in) and then open the browser again from scratch.

【参考】 https://ethereum.stackexchange.com/questions/28747/cant-retrieve-event-logs-with-metamask-web3

###3. 浏览器加载了前端页面之后总是显示loading,是啥原因?
* 首先打开console看看输出是什么,根据报错信息进行排查。
* 其次,可能的问题有:
1. testrpc没打开
2. truffle migrate需要带上--reset参数
3. metamask有没有切换到private网络


Binary file added Lesson-6/assignment/hw6Project.zip
Binary file not shown.
1 change: 1 addition & 0 deletions Lesson-6/assignment/yours.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*作业请提交在这个目录下*/
3 changes: 3 additions & 0 deletions Lesson-6/orgin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 硅谷live以太坊智能合约 第六课

这里是每一课的初始代码,有需要的同学可以参考
3 changes: 3 additions & 0 deletions Lesson-7/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 硅谷live以太坊智能合约频道官方地址

### 第七课
4 changes: 4 additions & 0 deletions Lesson-7/assignment/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 硅谷live以太坊智能合约 第七课作业
这里是同学提交作业的目录

### 第七课:课后作业
1 change: 1 addition & 0 deletions Lesson-7/assignment/yours.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*作业请提交在这个目录下*/
3 changes: 3 additions & 0 deletions Lesson-7/orgin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 硅谷live以太坊智能合约 第七课

这里是每一课的初始代码,有需要的同学可以参考