Skip to content

Commit

Permalink
Revert "Trying somethings"
Browse files Browse the repository at this point in the history
This reverts commit 0084d6e.
  • Loading branch information
tloriato committed Aug 20, 2019
1 parent 0084d6e commit 6128f1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rpc/rpcassets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,22 +372,22 @@ Value newcompany(const Array& params, bool fHelp)
issue_params.push_back(&params[0].get_str());

Object asset_params;
asset_params.push_back(Pair("name", params[1].get_value());
asset_params.push_back(Pair("name", &params[1].get_str()));
asset_params.push_back(Pair("open", true));
asset_params.push_back(Pair("restrict", "send,receive"));

issue_params.push_back(&asset_params);
issue_params.push_back(0);
issue_params.push_back(1);
issue_params.push_back(0);
issue_params.push_back(params[2].get_value());
issue_params.push_back(&params[2]);

issuecmd(issue_params, fHelp);

Array grant_params;
grant_params.push_back(params[0].get_value());
grant_params.push_back(&params[0].get_str());

std::string asset_activate = params[1].get_value();
std::string asset_activate = params[1].get_str();
asset_activate.append(".activate");

grant_params.push_back(asset_activate);
Expand Down

0 comments on commit 6128f1d

Please sign in to comment.