We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f9df4e commit e0af57cCopy full SHA for e0af57c
1 file changed
packages/hardhat-ethers/src/internal/signers/signers.ts
@@ -252,7 +252,10 @@ export class HardhatEthersSigner implements HardhatEthersSignerI {
252
253
const promises: Array<Promise<void>> = [];
254
255
- // Make sure the from matches the sender
+ // Mirror stock ethers: ENS-resolve `from` and assert it matches the
256
+ // signer. Hardhat can be pointed at mainnet/testnets via --network, where
257
+ // ENS works and users expect ethers-compatible `from` handling. Don't
258
+ // "simplify" this by letting the node handle the mismatch.
259
if (resolvedTx.from !== null && resolvedTx.from !== undefined) {
260
const _from = resolvedTx.from;
261
promises.push(
0 commit comments