Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ansabgillani committed May 21, 2024
1 parent 9fd2a85 commit 4e7fb9b
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion contract/src/gambling-game.proposal.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,25 @@ const startGame = async () => {
// Start the instance
const { publicFacet } = await E(zoeService).startInstance(installation, { IST: issuer });

// Todo: Can add Publishes Brand Info to the chain
// Todo: Can add publishesBrandInfo to the chain here

// Mint some IST to test with
console.log(brand);
const aliceAmount = AmountMath.make(brand, 100n);
const alicePayment = mint.mintPayment(aliceAmount);

// Create a deposit invitation
const aliceInvitation = E(publicFacet).makeDepositInvitation();
const proposal = { give: { IST: aliceAmount } };
const payments = { IST: alicePayment };

// Make an offer to deposit IST
const seat = await E(zoeService).offer(aliceInvitation, proposal, payments);
console.log(`Alice made a deposit: ${seat}`);

// Check the number of entries
const entriesCount = await E(publicFacet).getEntriesCount();
console.log(`Current number of entries: ${entriesCount}`);
};

// Define a manifest object describing the contract's capabilities and permissions
Expand Down

0 comments on commit 4e7fb9b

Please sign in to comment.