The purpose of this repository is to show a few example contracts for a real event called "Jazzathome".
These example contracts facilitate the transaction of tickets for the event and as well reservations for the event.
There are a few pitfalls when running the smart contracts in Remix:
-
Use stable compiler version 0.4.16 since this code is not compatible with release 0.5.0 of Solidity
-
Since the ABI formatter has changed in Remix you cannot pass a string as bytes32 anymore. You need to encode them first. This can be achieved using:
web3.utils.utf8ToHex('Your string')
In the console of the Remix IDE.
These contracts are indented to be used in tandem with a Web3 HTML,CSS, Javascript application. This application is yet to be uploaded to a public repository.
You should not base your code of these example contracts. There are written without much security considirations in mind and are also compiled against a (relatively) acient version of the compiler that has much less security analysis built-in as the current one.
The code might get update in the future.
Copyright all rights reserved Green10 BVBA License: GPLv3.