Skip to content

contracts: fix broken contracts tests#2727

Merged
tynes merged 1 commit intodevelopfrom
fix/broken-contracts-tests
Jun 8, 2022
Merged

contracts: fix broken contracts tests#2727
tynes merged 1 commit intodevelopfrom
fix/broken-contracts-tests

Conversation

@tynes
Copy link
Contributor

@tynes tynes commented Jun 8, 2022

Description

The contracts tests included a test that did a deep equality check
against two bignumbers. This check stopped working due to changes
in the bignumber implementations used, two bignumbers of the same number
no longer were considered equal. This commit fixes that problem by
using the same version of ethers as hardhat and also stringifying
the results so that strings are compared instead of objects. This
fixes the broken tests.

The `contracts` tests included a test that did a deep equality check
against two bignumbers. This check stopped working due to changes
in the bignumber implementations used, two bignumbers of the same number
no longer were considered equal. This commit fixes that problem by
using the same version of ethers as `hardhat` and also stringifying
the results so that strings are compared instead of objects. This
fixes the broken tests.
@changeset-bot
Copy link

changeset-bot bot commented Jun 8, 2022

⚠️ No Changeset found

Latest commit: 34f9be4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mergify mergify bot requested review from mslipper and tuxcanfly June 8, 2022 22:27
@mergify
Copy link
Contributor

mergify bot commented Jun 8, 2022

This PR changes implementation code, but doesn't include a changeset. Did you forget to add one?

@tynes tynes merged commit 680118f into develop Jun 8, 2022
@tynes tynes deleted the fix/broken-contracts-tests branch June 8, 2022 23:19
theochap pushed a commit that referenced this pull request Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants