Skip to content

Commit

Permalink
feat(vats): support behavior config via boostrap vatParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Jan 29, 2022
1 parent e76b9c2 commit 2e9baf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vats/src/core/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ const buildRootObject = (vatPowers, vatParameters) => {
entries(manifest).map(([name, permit]) =>
Promise.resolve().then(() => {
const endowments = extract(permit, powers);
const config = vatParameters[name];
console.info(`bootstrap: ${name}(${q(permit)})`);
return bootBehaviors[name](endowments);
return bootBehaviors[name](endowments, config);
}),
),
);
Expand Down

0 comments on commit 2e9baf2

Please sign in to comment.