add cmd support for contract - create contract
package io.nuls.client.cmd;
+import com.fasterxml.jackson.core.JsonParser;
import io.nuls.account.rpc.cmd.*;
import io.nuls.accout.ledger.rpc.cmd.*;
import io.nuls.client.constant.CommandConstant;
@@ -32,6 +33,7 @@ import io.nuls.client.rpc.constant.RpcConstant;
import io.nuls.consensus.poc.rpc.cmd.*;
import io.nuls.contract.rpc.cmd.*;
import io.nuls.core.tools.cfg.ConfigLoader;
+import io.nuls.core.tools.json.JSONUtils;
import io.nuls.core.tools.log.Log;
import io.nuls.core.tools.str.StringUtils;
import io.nuls.kernel.cfg.NulsConfig;
@@ -170,6 +172,8 @@ public class CommandHandler {
register(new GetContractTxListProcessor());
register(new GetContractAddressValidProcessor());
register(new GetWalletContractsProcessor());
+ register(new CreateContractProcessor());
+ JSONUtils.getInstance().configure(JsonParser.Feature.ALLOW_SINGLE_QUOTES, true);
sdkInit();
}
