Skip to content

Commit

Permalink
Merge pull request Agoric#79 from Agoric/provideContractHost
Browse files Browse the repository at this point in the history
Provide contract host to demo client
  • Loading branch information
michaelfig authored Sep 21, 2019
2 parents b5221b0 + a9d36f0 commit d1ebfdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/ag-solo/vats/vat-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function build(E, log) {
let sharedGalleryUserFacet;
let sharedHandoffService;
let sharedDustIssuer;
let contractHost;

let lastPublished;
const subscribers = [];
Expand Down Expand Up @@ -57,6 +58,7 @@ function build(E, log) {
const issuers = await E(gallery.userFacet).getIssuers();
sharedDustIssuer = issuers.dustIssuer;
sharedHandoffService = makeHandoffService();
contractHost = host;
}

async function createDemoClientBundle(_nickname) {
Expand All @@ -69,6 +71,7 @@ function build(E, log) {
handoffService,
purse,
canvasStatePublisher,
contractHost,
};
return harden(chainBundle);
}
Expand Down

0 comments on commit d1ebfdf

Please sign in to comment.