I have a action in my contract :
// @abi action
void ContractClass::submittxn(string memo,string memo2,uint64_t a = 61)
{
...
}
I try to set a as default parameter but when I push the transaction, it shows the following error:
Error 3015014: Pack data exception
Error Details:
Missing 'a' in variant object
I push the transaction as :
cleos push action contract_name submittxn'{"memo":"qwerty","memo2":"asdfgh"}' -p account_name
Is this possible in EOS or I have to find some other way? It works fine if I send this with full params.