eshon / ol3buildr

0 stars 0 forks source link

To help others out #10

Open eshon opened 5 years ago

eshon commented 5 years ago

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 commented 5 years ago

➤ Shawn Cicoria commented:

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