Skip to content

Commit

Permalink
tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
dannybabbev committed Apr 27, 2018
1 parent 24a976a commit 10f3e15
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# eos-smart-contracts

Training ground for the EOSIO hackathon in Hong Kong
A training ground for the EOSIO hackathon in Hong Kong

## Getting Started

**1. Make sure you have the latest version of EOSIO**
**1. Make sure you have the latest version of EOSIO (That's optional if you have a recent version)**

```
cd eos
Expand Down
15 changes: 15 additions & 0 deletions contracts/hello/hello.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include <eosiolib/eosio.hpp>
#include <eosiolib/print.hpp>
using namespace eosio;

class hello : public eosio::contract {
public:
using contract::contract;

/// @abi action
void hi( account_name user ) {
print( "Hello, ", name{user} );
}
};

EOSIO_ABI( hello, (hi) )

0 comments on commit 10f3e15

Please sign in to comment.