By default LLVM and clang do not include the WASM build target, so you will have to build it yourself. Note that following these instructions will create a version of LLVM that can only build WASM targets.
By default LLVM and clang do not include the WASM build target, so you will have to build it yourself:
For a debug build, add `-DCMAKE_BUILD_TYPE=Debug`. Other common build types include `Release` and `RelWithDebInfo`.
To run the test suite after building, run the `chain_test` executable in the `tests` folder.
...
...
@@ -220,11 +244,22 @@ plugin = eos::http_plugin
Now it should be possible to run `eosd` and see it begin producing blocks. At present, the P2P code is not implemented, so only single-node configurations are possible. When the P2P networking is implemented, these instructions will be updated to show how to create an example multi-node testnet.
## Accounts and smart contracts
EOS comes with example contracts that can be uploaded and run. To upload and test them, please follow the steps below.
### Create accounts for your smart contracts
To publish sample smart contracts you need to create accounts for them.
At the moment for the testing purposes you need to run `eosd --skip-transaction-signatures` to successfully create accounts and run transactions.
At the moment for the testing purposes you need to run `eosd` with `--skip-transaction-signatures` flag to successfully create accounts and run transactions.
Run the node:
```commandline
cd ~/eos/build/programs/eosd/
./eosd --skip-transaction-signatures
```
First, generate public/private key pairs for the `owner_key` and `active_key`. We will need them to create an account:
...
...
@@ -249,10 +284,6 @@ Run `create` command where `PUBLIC_KEY_1` and `PUBLIC_KEY_2` are the values gene