提交 fcfc82be 编写于 作者: N Nathan Hourt

Ref #213: Set unsatisfiable auths on eos

Eos account now has unsatisfiable owner and active authorities, rather
than none at all.
上级 38c6554f
......@@ -104,6 +104,17 @@ std::vector<chain::Message> native_contract_chain_initializer::prepare_database(
a.set_abi(eos_contract_abi());
}
});
const auto& owner = db.create<permission_object>([&name](permission_object& p) {
p.owner = name;
p.name = "owner";
p.auth.threshold = 1;
});
db.create<permission_object>([&name, &owner](permission_object& p) {
p.owner = name;
p.parent = owner.id;
p.name = "active";
p.auth.threshold = 1;
});
db.create<native::eos::BalanceObject>([&name, liquidBalance]( auto& b) {
b.ownerName = name;
b.balance = liquidBalance;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册