Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

9 张伟 - 第一次作业 #31

Merged
merged 55 commits into from
Jan 14, 2018
Merged

9 张伟 - 第一次作业 #31

merged 55 commits into from
Jan 14, 2018

Conversation

macctown
Copy link

@macctown macctown commented Jan 8, 2018

谢谢助教!

Copy link
Collaborator

@gillianth54 gillianth54 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good! Please check the comment.

*/
function calculateRunway() returns (uint) {
if (employeeSalary == 0) {
revert();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good that you thought about this. Luckily, EVM throws upon division by zero. Refer to this thread.
ethereum/solidity#670

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your advice.

@macctown macctown merged commit 4bed6e6 into linjie-1:9-张伟 Jan 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants