Skip to content

Instantly share code, notes, and snippets.

@nanthanwa
Last active September 2, 2021 09:17
Show Gist options
  • Save nanthanwa/c5b959a0f00e889ceb5dd7ec6450aad6 to your computer and use it in GitHub Desktop.
Save nanthanwa/c5b959a0f00e889ceb5dd7ec6450aad6 to your computer and use it in GitHub Desktop.
describe("OneClickMint", () => {
let contract;
beforeEach(async () => {
contract = await deployContract();
});
describe("# Minting with TCR 0.5", () => {
beforeEach(async () => {
await contract.setTCR("0.5");
});
it("can mint ....", async () => {});
it("can mint ....", async () => {});
});
describe("# set variable by maintainer", () => {
beforeEach(async () => {
const [minter, maintainer] = await ethers.getSigners();
await contract.setMaintainer(maintainer.address);
});
it("can ...", async () => {
const [minter, maintainer] = await ethers.getSigners();
await contract.connect(minter).quickMint();
});
it("can ...", async () => {
[minter, maintainer] = await ethers.getSigners();
await contract.connect(minter).quickMint();
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment