Skip to content

Commit

Permalink
fix gumball machine tests (#152)
Browse files Browse the repository at this point in the history
Co-authored-by: Noah Gundotra <[email protected]>
  • Loading branch information
ngundotra and Noah Gundotra authored Jul 19, 2022
1 parent 54bcee4 commit 30c6d36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/tests/gumball-machine-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ describe("gumball-machine", () => {
merkleRollKeypair: Keypair,
verbose?: boolean
) {
const requestCU = ComputeBudgetProgram.requestUnits({ units: 1.4e6, additionalFee: 0 });
const dispenseInstr = await createDispenseNFTForSolIx(
{ numItems: numNFTs },
payer.publicKey,
Expand All @@ -498,7 +499,7 @@ describe("gumball-machine", () => {
);
const txId = await execute(
GumballMachine.provider,
[dispenseInstr],
[requestCU, dispenseInstr],
[payer],
true
);
Expand Down Expand Up @@ -842,6 +843,7 @@ describe("gumball-machine", () => {
creatorKeys: [],
creatorShares: Uint8Array.from([])
};

const expectedOnChainHeader: GumballMachineHeader = {
urlBase: newGumballMachineHeader.urlBase,
nameBase: newGumballMachineHeader.nameBase,
Expand Down

0 comments on commit 30c6d36

Please sign in to comment.