Skip to content

Instantly share code, notes, and snippets.

@tumf
Created February 13, 2022 03:27
Show Gist options
  • Save tumf/d01cf66c2c8b7842fb74c133a80bdba0 to your computer and use it in GitHub Desktop.
Save tumf/d01cf66c2c8b7842fb74c133a80bdba0 to your computer and use it in GitHub Desktop.
const { ethers } = require("hardhat");
describe("Consumer", () => {
let consumer;
before(async () => {
const Consumer = await ethers.getContractFactory("Consumer");
consumer = await Consumer.deploy();
await consumer.deployed();
});
it("#counter1", async () => {
await consumer.counter1();
});
it("#counter2", async () => {
await consumer.counter2();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment