Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
clean up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed Jul 13, 2022
1 parent 7a806ed commit d615faa
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ describe("api", () => {
1,
`Unexpected size of access list: ${accessList.length}. Expected: 1`
);
const addresses = accessList.map(entry => {
return entry.address;
});
assert(
addresses.includes(to),
`Access list didn't include address read by contract`
const { address } = accessList[0];

assert.strictEqual(
address,
to,
`Access list didn't include expected address.`
);
});

Expand Down Expand Up @@ -310,9 +310,8 @@ describe("api", () => {
params: [accessListHash]
});

// @ts-ignore TODO: receipt types are being weird
const { gasUsed: noAccessListGasUsed } = noAccessListReceipt;
// @ts-ignore

const { gasUsed: accessListGasUsed } = accessListReceipt;
assert.strictEqual(
gasUsed,
Expand Down

0 comments on commit d615faa

Please sign in to comment.