Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate utils-structs tests to ethersjs #4748

Merged
merged 12 commits into from
Nov 23, 2023

Conversation

RenanSouza2
Copy link
Contributor

PR Checklist

  • Tests
  • Documentation
  • Changeset entry (run npx changeset add)

Copy link

changeset-bot bot commented Nov 19, 2023

⚠️ No Changeset found

Latest commit: 3494dcc

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

@Amxx Amxx added this to the tests migration milestone Nov 22, 2023
Amxx
Amxx previously approved these changes Nov 22, 2023
Copy link
Member

@ernestognw ernestognw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I committed a couple of nits and also removed lodash.zip as a dependency.
LGTM 🙌🏻

}
});

it('upper lookup & upperLookupRecent', async function () {
for (let i = 0; i < 14; ++i) {
const value = last(this.checkpoints.filter(x => i >= x.key))?.value || '0';
const value = this.checkpoints.findLast(x => i >= x.key)?.value || 0n;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately findLast is a node 18 addition.
I'm tracking an update to Node in #4719

@ernestognw ernestognw enabled auto-merge (squash) November 23, 2023 05:24
Copy link

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: [email protected]

@ernestognw ernestognw merged commit 0950532 into OpenZeppelin:master Nov 23, 2023
@RenanSouza2 RenanSouza2 deleted the migrate-utils-structs branch November 23, 2023 08:16
@Amxx Amxx mentioned this pull request Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants