Skip to content

Fix type errors: use HardhatEthersSigner instead of Signer#816

Merged
ryanio merged 2 commits intomainfrom
fix/hardhat-ethers-signer-types
Jan 13, 2026
Merged

Fix type errors: use HardhatEthersSigner instead of Signer#816
ryanio merged 2 commits intomainfrom
fix/hardhat-ethers-signer-types

Conversation

@ryanio
Copy link
Collaborator

@ryanio ryanio commented Jan 13, 2026

Summary

  • Replace Signer type from ethers with HardhatEthersSigner from @nomicfoundation/hardhat-ethers/signers in test files
  • Fixes CI lint failures caused by ethers v6 Signer type now including EIP-7702 authorization methods (populateAuthorization, authorize) that HardhatEthersSigner doesn't implement

Test plan

  • npm run lint passes locally
  • CI lint job passes

🤖 Generated with Claude Code

ryanio and others added 2 commits January 13, 2026 12:41
The ethers v6 Signer type now includes EIP-7702 authorization methods
(populateAuthorization, authorize) that HardhatEthersSigner doesn't
implement. This causes type errors in CI with newer Node.js/ethers versions.

Replace Signer with HardhatEthersSigner in all test files where
ethers.getSigners() is used.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Cast HardhatEthersSigner to Signer when passing to getTransactionMethods
which expects the ethers Signer type.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ryanio ryanio merged commit 134ea1e into main Jan 13, 2026
8 checks passed
@ryanio ryanio deleted the fix/hardhat-ethers-signer-types branch January 13, 2026 20:51
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.

1 participant