Skip to content

Commit

Permalink
Adds type keyword to exports.
Browse files Browse the repository at this point in the history
  • Loading branch information
robotoer committed Oct 4, 2024
1 parent e8a18e2 commit 30a502d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/compat/waffle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
deployMock,
MockCallExpectation,
MockContractController,
} from "../mock-contract";
} from "../mock-contract.js";
import { PublicClient, WalletClient } from "viem";

export const doppelgangerAbi = [
Expand Down
17 changes: 11 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
export {
MockReadCallExpectation,
MockWriteCallExpectation,
MockRevertExpectation,
MockCallExpectation,
MockContractController,
type MockReadCallExpectation,
type MockWriteCallExpectation,
type MockRevertExpectation,
type MockCallExpectation,
type MockContractController,
deployMock,
} from "./mock-contract";
} from "./mock-contract.js";

export {
type MockContract,
deployMockContract,
} from "./compat/waffle.js";
2 changes: 1 addition & 1 deletion test/mock-contract.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect } from "chai";
import { zeroAddress } from "viem";
import { deployMock } from "../src/mock-contract";
import { deployMock } from "../src/mock-contract.js";
import hre from "hardhat";
import { ExtractAbiFunction } from "abitype";

Expand Down
2 changes: 1 addition & 1 deletion test/waffle-compat.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from "chai";
import { deployMockContract } from "../src/compat/waffle";
import { deployMockContract } from "../src/compat/waffle.js";
import hre from "hardhat";
import { zeroAddress } from "viem";

Expand Down

0 comments on commit 30a502d

Please sign in to comment.