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

hardhat_setLedgerOutputEnabled - Method not supported still persists #6193

Open
mikhailal opened this issue Jan 26, 2025 · 2 comments
Open
Assignees

Comments

@mikhailal
Copy link

Version of Hardhat

2.22.18

What happened?

As in #5406, the same error message during contract deployment is shown.
"hardhat_setLedgerOutputEnabled - Method not supported"

Stack trace:
hardhat:ignition ProviderError: hardhat_setLedgerOutputEnabled - Method not supported hardhat:ignition at HttpProvider.request (/home/mikhaila/nowork/hardhat/example/node_modules/hardhat/src/internal/core/providers/http.ts:92:21) hardhat:ignition at AutomaticSenderProvider.request (/home/mikhaila/nowork/hardhat/example/node_modules/hardhat/src/internal/core/providers/accounts.ts:355:34) hardhat:ignition at AutomaticGasProvider.request (/home/mikhaila/nowork/hardhat/example/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:135:34) hardhat:ignition at AutomaticGasPriceProvider.request (/home/mikhaila/nowork/hardhat/example/node_modules/hardhat/src/internal/core/providers/gas-providers.ts:153:36) hardhat:ignition

Code with workaround:
public async request(args: RequestArguments): Promise<unknown> { // This is a temporary fix to an issue with noisy warnings in the logs // of a local node (#5406). This will be fixed in the next major release. if (args.method === "hardhat_setLedgerOutputEnabled") { const error = new ProviderError( "hardhat_setLedgerOutputEnabled - Method not supported", -32004 ); // eslint-disable-next-line @nomicfoundation/hardhat-internal-rules/only-hardhat-error throw error; }

Sorry for the report. Maybe commenting this part of code and rebuild this module could be a good idea, but at the moment i dont know how to do this patch :)

Minimal reproduction steps

Try to install hardhat to Manjaro OS using the default installation guide.
Then try to deploy some contract to local network node using Ingnition module.

ignition_stub.log

deploy_log.log

Search terms

ignition setLedgerOutputEnabled

@mikhailal
Copy link
Author

{
"devDependencies": {
"@nomicfoundation/hardhat-ledger": "^1.0.3",
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
"hardhat": "^2.22.18"
}
}

@mikhailal
Copy link
Author

This issue could be reproduced on 2.22.9 hadhar version when using the same Ignition plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants