Skip to content

Commit

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

Check failure on line 18 in contract/src/gambling-game.proposal.js

View workflow job for this annotation

GitHub Actions / unit

'publicFacet' is assigned a value but never used. Allowed unused vars must match /^_/u

// 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}`);
// Todo: Can add Publishes Brand Info to the chain
};

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

0 comments on commit 9fd2a85

Please sign in to comment.