Skip to content

Commit

Permalink
change types
Browse files Browse the repository at this point in the history
  • Loading branch information
n00b21337 committed Mar 14, 2024
1 parent 94dab48 commit ca8ae3c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/SimpleSwapFactory.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { expect } from 'chai';
import { ethers } from 'hardhat';
import { BigNumber, Contract, ContractTransaction } from 'ethers';

Check warning on line 3 in test/SimpleSwapFactory.test.ts

View workflow job for this annotation

GitHub Actions / check

'BigNumber' is defined but never used

Check warning on line 3 in test/SimpleSwapFactory.test.ts

View workflow job for this annotation

GitHub Actions / check

'ContractTransaction' is defined but never used
import { constants } from '@openzeppelin/test-helpers';

describe('SimpleSwapFactory', function () {
const salt = '0x000000000000000000000000000000000000000000000000000000000000abcd';
let issuer, other;
let simpleSwapFactory, testToken;
let issuer:any, other:any;

Check failure on line 8 in test/SimpleSwapFactory.test.ts

View workflow job for this annotation

GitHub Actions / check

Replace `any,·other:` with `·any,·other:·`

Check warning on line 8 in test/SimpleSwapFactory.test.ts

View workflow job for this annotation

GitHub Actions / check

Unexpected any. Specify a different type

Check warning on line 8 in test/SimpleSwapFactory.test.ts

View workflow job for this annotation

GitHub Actions / check

Unexpected any. Specify a different type
let simpleSwapFactory:Contract, testToken:Contract;

Check failure on line 9 in test/SimpleSwapFactory.test.ts

View workflow job for this annotation

GitHub Actions / check

Replace `Contract,·testToken:` with `·Contract,·testToken:·`

beforeEach(async function () {
[issuer, other] = await ethers.getSigners();
Expand Down Expand Up @@ -84,6 +85,7 @@ describe('SimpleSwapFactory', function () {
simpleSwapFactory = await SimpleSwapFactory.deploy(testToken.address);
await simpleSwapFactory.deployed();

console.log(constants.ZERO_ADDRESS);
await expect(simpleSwapFactory.deploySimpleSwap(constants.ZERO_ADDRESS, 86400, salt)).to.be.revertedWith(
'invalid issuer'
);
Expand Down

0 comments on commit ca8ae3c

Please sign in to comment.