Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

"asset" struct incoming parameters error. #21

Closed
lw396 opened this issue Sep 8, 2022 · 2 comments
Closed

"asset" struct incoming parameters error. #21

lw396 opened this issue Sep 8, 2022 · 2 comments
Assignees

Comments

@lw396
Copy link

lw396 commented Sep 8, 2022

#include <hello.hpp>

ACTION hello::hi(name nm, asset money)
{
   print_f("money: %\n", money);

   print_f("Name : %\n", nm);
}
#include <eosio/crypto.hpp>
#include <eosio/eosio.hpp>
#include <eosio/asset.hpp>
using namespace eosio;
CONTRACT hello : public contract
{
public:
   using contract::contract;

   ACTION hi(name nm, asset money);

   using hi_action = action_wrapper<"hi"_n, &hello::hi>;
};

Sending actions: dune -- cleos push action hello create '{"nm":"hello", "money":"1000000000.0000 SYS"}' -p hello@active
**Return result: ** The following arguments were not expected: SYS"} "money":"1000000000.0000
Run with --help for more information.

install leap leap-3.1.0-rc4-ubuntu18.04-x86_64.deb
install cdt cdt_3.0.0-rc2_amd64.deb

@spoonincode
Copy link
Member

This looks like a DUNE issue, where possibly it's not maintaining (lack of) spaces in quoted parameters. I'm sending it over to the DUNE issue list.

@spoonincode spoonincode transferred this issue from AntelopeIO/leap Sep 8, 2022
@lw396
Copy link
Author

lw396 commented Sep 8, 2022

This looks like a DUNE issue, where possibly it's not maintaining (lack of) spaces in quoted parameters. I'm sending it over to the DUNE issue list.

I also submitted this question in dune, but no one replied to me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

4 participants