Skip to content

Commit

Permalink
fix: contract test
Browse files Browse the repository at this point in the history
  • Loading branch information
janek26 committed Mar 10, 2022
1 parent efa63d6 commit a9b4103
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions __tests__/contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,10 @@ describe('class ContractFactory {}', () => {
const erc20 = await factory.deploy();
expect(erc20 instanceof Contract);
});
test('get the transaction of the deployed contract', async () => {
test('wait for deployment transaction', async () => {
const factory = new ContractFactory(compiledErc20);
await factory.deploy();
const tx = await factory.getDeployTransaction();
expect(tx).toHaveProperty('status');
expect(tx).toHaveProperty('transaction');
const contract = await factory.deploy();
expect(contract.deployed()).resolves.not.toThrow();
});
test('attach new contract', async () => {
const factory = new ContractFactory(compiledErc20);
Expand Down

0 comments on commit a9b4103

Please sign in to comment.