Skip to content

Instantly share code, notes, and snippets.

View brunoeduardodev's full-sized avatar

Bruno Eduardo de Souza Medeiros brunoeduardodev

View GitHub Profile
@brunoeduardodev
brunoeduardodev / index.ts
Created February 2, 2022 18:18
Solidity Testing
type Sut = {
transactionsContract: Transactions;
owner: SignerWithAddress;
randomSigner: SignerWithAddress;
};
const makeSut = async (): Promise<Sut> => {
const [owner, randomSigner] = await ethers.getSigners();
const TransactionsContract = await ethers.getContractFactory("Transactions");