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

don't load Truffle's console contract into the console environment #5788

Merged
merged 3 commits into from Dec 15, 2022

Conversation

eggplantzzz
Copy link
Contributor

This PR stops Truffle from loading its console contract into the console environment. Previously Truffle would load it into the console context (which users will not need to directly interact with in the repl) which would also cause the namespace error to be printed.

cds-amal
cds-amal previously approved these changes Dec 15, 2022
Copy link
Member

@cds-amal cds-amal left a comment

Choose a reason for hiding this comment

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

I like it! Thanks, @eggplantzzz. I left a suggestion for the comment, which I don't think is a hack, but your call.

packages/core/lib/console.js Outdated Show resolved Hide resolved
@cds-amal cds-amal dismissed their stale review December 15, 2022 18:21

I should have tested it locally

@eggplantzzz
Copy link
Contributor Author

ah thanks, yes I inverted the logic trying to get this through quickly

Copy link
Member

@cds-amal cds-amal left a comment

Choose a reason for hiding this comment

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

I like it, really! Thanks, @eggplantzzz

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants