This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <eosio/eosio.hpp> | |
#include <string> | |
using namespace eosio; | |
using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class [[eosio::contract("example")]] example : public contract { | |
public: | |
using contract::contract; | |
[[eosio::action]] void post(const name author, const string message) { | |
require_auth(author); | |
message_table messages(_self, _self.value); | |
messages.emplace(author, [&](auto &post) { | |
post.id = messages.available_primary_key(); | |
post.body = message; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Piepline | |
on: | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x] |
OlderNewer