diff --git a/Lesson-6/README.md b/Lesson-6/README.md new file mode 100644 index 0000000..f9cf456 --- /dev/null +++ b/Lesson-6/README.md @@ -0,0 +1,3 @@ +## 硅谷live以太坊智能合约频道官方地址 + +### 第六课 diff --git a/Lesson-6/assignment/README.md b/Lesson-6/assignment/README.md new file mode 100644 index 0000000..169ad69 --- /dev/null +++ b/Lesson-6/assignment/README.md @@ -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网络 + + diff --git a/Lesson-6/assignment/hw6Project.zip b/Lesson-6/assignment/hw6Project.zip new file mode 100644 index 0000000..8f4352f Binary files /dev/null and b/Lesson-6/assignment/hw6Project.zip differ diff --git a/Lesson-6/assignment/yours.sol b/Lesson-6/assignment/yours.sol new file mode 100644 index 0000000..dfdb2c4 --- /dev/null +++ b/Lesson-6/assignment/yours.sol @@ -0,0 +1 @@ +/*作业请提交在这个目录下*/ diff --git a/Lesson-6/orgin/README.md b/Lesson-6/orgin/README.md new file mode 100644 index 0000000..810bc4b --- /dev/null +++ b/Lesson-6/orgin/README.md @@ -0,0 +1,3 @@ +## 硅谷live以太坊智能合约 第六课 + +这里是每一课的初始代码,有需要的同学可以参考 diff --git a/Lesson-7/README.md b/Lesson-7/README.md new file mode 100644 index 0000000..52bbe22 --- /dev/null +++ b/Lesson-7/README.md @@ -0,0 +1,3 @@ +## 硅谷live以太坊智能合约频道官方地址 + +### 第七课 diff --git a/Lesson-7/assignment/README.md b/Lesson-7/assignment/README.md new file mode 100644 index 0000000..ff1e845 --- /dev/null +++ b/Lesson-7/assignment/README.md @@ -0,0 +1,4 @@ +## 硅谷live以太坊智能合约 第七课作业 +这里是同学提交作业的目录 + +### 第七课:课后作业 diff --git a/Lesson-7/assignment/yours.sol b/Lesson-7/assignment/yours.sol new file mode 100644 index 0000000..dfdb2c4 --- /dev/null +++ b/Lesson-7/assignment/yours.sol @@ -0,0 +1 @@ +/*作业请提交在这个目录下*/ diff --git a/Lesson-7/orgin/README.md b/Lesson-7/orgin/README.md new file mode 100644 index 0000000..5f011c0 --- /dev/null +++ b/Lesson-7/orgin/README.md @@ -0,0 +1,3 @@ +## 硅谷live以太坊智能合约 第七课 + +这里是每一课的初始代码,有需要的同学可以参考