From 8ed041c6635d807b3da8960ad49e125e3d1b0e80 Mon Sep 17 00:00:00 2001 From: Oleksii Kosynskyi Date: Tue, 5 Mar 2024 10:36:27 -0500 Subject: [PATCH] Research (#6841) * add nopp * fix * custom fix * add space * fix * fix --- packages/web3-utils/src/index.ts | 2 +- packages/web3-utils/src/objects.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web3-utils/src/index.ts b/packages/web3-utils/src/index.ts index e5f467ec5f8..23eb49dde9a 100644 --- a/packages/web3-utils/src/index.ts +++ b/packages/web3-utils/src/index.ts @@ -33,4 +33,4 @@ export * from './web3_eip1193_provider.js'; export * from './socket_provider.js'; export * from './uint8array.js'; // for backwards compatibility with v1 -export {AbiItem} from 'web3-types'; \ No newline at end of file +export { AbiItem } from 'web3-types'; diff --git a/packages/web3-utils/src/objects.ts b/packages/web3-utils/src/objects.ts index 4ed6c328ef8..6417465e57b 100644 --- a/packages/web3-utils/src/objects.ts +++ b/packages/web3-utils/src/objects.ts @@ -36,7 +36,7 @@ export const mergeDeep = ( destination: Record, ...sources: Record[] ): Record => { - const result = destination; // clone deep here + const result = { ...destination }; // clone deep here if (!isIterable(result)) { return result; }