Adding a low previledged user for the hotpocket contract (#35)

This commit is contained in:
Chalith Desaman
2021-07-19 15:32:10 +05:30
committed by GitHub
parent e9e8f6fda0
commit 7cb4ddc069
3 changed files with 30 additions and 21 deletions

View File

@@ -562,10 +562,7 @@ namespace hp
d["node"]["public_key"] = pubkey_hex;
d["node"]["private_key"] = util::to_hex(seckey);
d["contract"]["id"] = contract_id;
// Contract UGID will be passed to hpcore in next PBI, with resolving cgroup issue.
// d["contract"]["run_as"] = contract_ugid.to_string();
d["contract"]["run_as"] = contract_ugid.to_string();
jsoncons::ojson unl(jsoncons::json_array_arg);
unl.push_back(util::to_hex(pubkey));
d["contract"]["unl"] = unl;