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. #18

Closed
lw396 opened this issue Sep 5, 2022 · 1 comment
Closed

"asset" struct incoming parameters error. #18

lw396 opened this issue Sep 5, 2022 · 1 comment
Labels

Comments

@lw396
Copy link

lw396 commented Sep 5, 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 maximum_supply);

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

Sending actions: dune -- cleos push action hello create '{"issuer":"hello", "maximum_supply":"1000000000.0000 SYS"}' -p hello@active
**Return result: ** The following arguments were not expected: SYS"} "maximum_supply":"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

@stephenpdeos
Copy link
Member

Duplicate of #21 , which currently has more activity. Discarding for now and keeping the other.

Repository owner moved this from Todo to Done in Team Backlog Sep 8, 2022
@stephenpdeos stephenpdeos moved this from Done to Discard in Team Backlog Sep 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants