Smart contract example
#include <eosio/eosio.hpp>
class [[eosio::contract]] hello : public eosio::contract {
public:
using contract::contract;
[[eosio::action]]
void world( ) {
eosio::print( "hello" );
}
};
❌ Can't push action with empty params
$ eosc -u http://localhost:8888 tx create hello world '{}' -p eosio
ERROR: signing transaction: get_required_keys: Internal Service Error: Invalid packed transaction: Failed to deserialize data for hello:world: Failed to deserialize variant: Invalid transaction