eos
eos copied to clipboard
cleos push action how transfer parameters symbol_type?
have a interface in abi file:
void buy(symbol_typesymbol);
cleos push action test buy '["4,EOS"]'
that have error!and how put this parameter in put action?
Try defining the type as symbol_name rather than symbol_type.
@jgiszczak and how put data in cleos push action ? thank you
i use that solve this problem:
void buy(string symbol)
{
uint64_t symboltmp = ::eosio::string_to_symbol(4,symbol.c_str());
}