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

Fix hardhat-ledger to work with hardhat console #4795

Merged
merged 2 commits into from
Feb 8, 2024

Conversation

area
Copy link
Contributor

@area area commented Jan 26, 2024

  • Because this PR includes a bug fix, relevant tests have been included.
  • Because this PR includes a new feature, the change was previously discussed on an Issue or with someone from the team.
  • I didn't do anything of this.

I am attempting to use npx hardhat console in conjunction with hardhat-ledger. When doing so, after sending any transaction, hardhat console exits. This behaviour is related, either unintentionally or not, to the default value of discardStdin. This PR changes the value used.

There is a slight behavioral change in the console, which is that, as you might expect, keyboard input while the spinner is running is not discarded. This feels more acceptable than exiting after every transaction.

It does not seem to me that additional tests are required here, but open to guidance on that front.

Copy link

changeset-bot bot commented Jan 26, 2024

🦋 Changeset detected

Latest commit: f60cc9e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@nomicfoundation/hardhat-ledger Patch

Not sure what this means? Click here to learn what changesets are.

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

Copy link

vercel bot commented Jan 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hardhat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 8, 2024 9:14am

@area area changed the title hardhat-ledger should work with hardhat console Fix hardhat-ledger to work with hardhat console Jan 26, 2024
@fvictorio
Copy link
Member

Great catch, thanks! I had no idea that ora did that.

@fvictorio fvictorio merged commit a2f6bc3 into NomicFoundation:main Feb 8, 2024
10 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants