We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2c6746 commit 8348448Copy full SHA for 8348448
v-next/hardhat-ethers/src/internal/signers/deep-copy.ts
@@ -12,7 +12,9 @@ const PRIMITIVE = [
12
13
export async function deepCopy<T = any>(value: T): Promise<T> {
14
// The function 'deepClone' from 'hardhat-utils' cannot be used to replace this function, it won't properly clone
15
- // the value.
+ // the value. The reason is that 'deepClone' doesn't handle certain custom cases,
16
+ // such as skipping objects with a getAddress method and treating primitive types explicitly.
17
+ // These custom checks are necessary for correct behavior in our use case.
18
19
if (
20
value === null ||
0 commit comments