Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #471 from EOSIO/nathan-misc
Browse files Browse the repository at this point in the history
Ref #213: Set unsatisfiable auths on eos
  • Loading branch information
bytemaster authored Sep 26, 2017
2 parents c703532 + fcfc82b commit e31e6b0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libraries/native_contract/native_contract_chain_initializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e31e6b0

Please sign in to comment.