Skip to content

Commit

Permalink
Merge pull request solana-labs#154 from jarry-xiao/decompress-multipl…
Browse files Browse the repository at this point in the history
…e-creators

Support Decompress with Creators
  • Loading branch information
samwise2 authored Jul 24, 2022
2 parents ab88263 + 0baf5aa commit 2674359
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions contracts/tests/gummyroll-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ import {
assertOnChainMerkleRollProperties,
createAllocTreeIx,
} from "../sdk/gummyroll";
import { execute, logTx } from "../sdk/utils";
import { CANDY_WRAPPER_PROGRAM_ID } from "../sdk/utils";
import { bs58 } from "@project-serum/anchor/dist/cjs/utils/bytes";
import { CANDY_WRAPPER_PROGRAM_ID, execute, logTx } from "../sdk/utils";

// @ts-ignore
let Gummyroll;
Expand Down Expand Up @@ -473,12 +472,8 @@ describe("gummyroll", () => {

// Execute all replaces in a "single block"
ixArray.map((ix) => {
const tx = new Transaction().add(ix);
txList.push(
Gummyroll.provider.send(tx, [payer], {
commitment: "confirmed",
skipPreflight: true,
})
execute(Gummyroll.provider, [ix], [payer])
);
});
await Promise.all(txList);
Expand Down Expand Up @@ -691,7 +686,7 @@ describe("gummyroll", () => {
ixs.push(replaceIx);
if (ixs.length == stepSize) {
replaces++;
let tx = await execute(Gummyroll.provider, ixs, [payer]);
await execute(Gummyroll.provider, ixs, [payer]);
console.log("Replaced", replaces * stepSize, "leaves");
ixs = [];
}
Expand Down

0 comments on commit 2674359

Please sign in to comment.