Does anyone know how to pass an assets symbol_name
in as an argument to an action? I have been trying the following:
.abi
"types": [{
"new_type_name": "symbol_name",
"type": "uint64"
}]
and .cpp
void contract::getsymbol(symbol_name sym) {
print("Symbol is ", name{sym});
}
However when I try to pass in a symbol like TEST
a get the following error:
Couldn't parse uint64_t