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

To help others out #10

Open
eshon opened this issue May 15, 2019 · 1 comment
Open

To help others out #10

eshon opened this issue May 15, 2019 · 1 comment

Comments

@eshon
Copy link
Owner

eshon commented May 15, 2019

You need to add an empty images folder to the app folder i.e.
..app/images
Also in Migrations.sol in the contracts folder add a ; at the end of line 8 so it reads:
if (msg.sender == owner) _;

Also add: pragma solidity ^0.4.2; to the start of Conference.sol and Migrations.sol

And now one that had me stumped change line 19 (it will be line 18) unless you add the pragma line to:
function buyTicket() payable public {
That is add the payable modifier to the buyTicket() function. if you don't it will throw invalid jump!
And truffle test will fail.

Still having issues with the refund function specifically
the recipient.send(amount); line.

@eshon
Copy link
Owner Author

eshon commented May 15, 2019

➤ Shawn Cicoria commented:

that last issue is if (! recipient.send(amount) ) throw;

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

No branches or pull requests

1 participant