Group transactions to decrease overall test suite run time (#81)

* Refactor transaction wait for value types and arrays.

* Refactor transaction wait for reference type variables.

Co-authored-by: nikugogoi <95nikass@gmail.com>
This commit is contained in:
Ashwin Phatak 2021-06-21 19:13:58 +05:30 committed by GitHub
parent 38a189d74a
commit 7bbc920fda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 453 additions and 593 deletions

View File

@ -1,6 +1,6 @@
import { expect } from 'chai';
import '@nomiclabs/hardhat-ethers';
import { artifacts, ethers } from 'hardhat';
import { artifacts } from 'hardhat';
import { getEventNameTopics } from './logs';
@ -21,9 +21,6 @@ const TEST_DATA = [
it('get event name topics', async () => {
const testPromises = TEST_DATA.map(async ({ name, output }) => {
const Contract = await ethers.getContractFactory(name);
const contract = await Contract.deploy();
await contract.deployed();
const { abi } = await artifacts.readArtifact(name);
const eventNameTopics = getEventNameTopics(abi);

File diff suppressed because it is too large Load Diff