Skip to content

Commit 2998193

Browse files
committed
expand tests
1 parent e84df5c commit 2998193

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/hardhat-chai-matchers/test/addressable.ts

+12
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,30 @@ describe("Addressable matcher", () => {
77
const signer = ethers.Wallet.createRandom();
88
const address = signer.address;
99
const contract = new ethers.Contract(address, []);
10+
const typedAddress = ethers.Typed.address(address);
11+
const typedSigner = ethers.Typed.address(signer);
12+
const typedContract = ethers.Typed.address(contract);
1013

1114
const otherSigner = ethers.Wallet.createRandom();
1215
const otherAddress = otherSigner.address;
1316
const otherContract = new ethers.Contract(otherAddress, []);
17+
const otherTypedAddress = ethers.Typed.address(address);
18+
const otherTypedSigner = ethers.Typed.address(signer);
19+
const otherTypedContract = ethers.Typed.address(contract);
1420

1521
const elements = [
1622
{ name: "address", object: address, class: address },
1723
{ name: "signer", object: signer, class: address },
1824
{ name: "contract", object: contract, class: address },
25+
{ name: "typed contract", object: typedAddress, class: address },
26+
{ name: "typed contract", object: typedSigner, class: address },
27+
{ name: "typed contract", object: typedContract, class: address },
1928
{ name: "other address", object: otherAddress, class: otherAddress },
2029
{ name: "other signer", object: otherSigner, class: otherAddress },
2130
{ name: "other contract", object: otherContract, class: otherAddress },
31+
{ name: "other typed address", object: otherTypedAddress, class: otherAddress },
32+
{ name: "other typed signer", object: otherTypedSigner, class: otherAddress },
33+
{ name: "other typed contract", object: otherTypedContract, class: otherAddress },
2234
];
2335

2436
for (const el1 of elements)

0 commit comments

Comments
 (0)