Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
avkos committed Mar 5, 2024
1 parent 29982fa commit c7bb64d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web3-utils/src/objects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const mergeDeep = (
destination: Record<string, unknown>,
...sources: Record<string, unknown>[]
): Record<string, unknown> => {
const result = destination; // clone deep here
const result = { ...destination }; // clone deep here
if (!isIterable(result)) {
return result;
}
Expand All @@ -60,5 +60,5 @@ export const mergeDeep = (
}
}
}
return result.freeze ? Object.freeze(result) : result;
return result;
};

1 comment on commit c7bb64d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: c7bb64d Previous: 6c075db Ratio
processingTx 9239 ops/sec (±4.17%) 9301 ops/sec (±4.81%) 1.01
processingContractDeploy 41714 ops/sec (±7.69%) 39129 ops/sec (±7.62%) 0.94
processingContractMethodSend 20530 ops/sec (±4.75%) 19443 ops/sec (±5.19%) 0.95
processingContractMethodCall 39568 ops/sec (±6.32%) 38971 ops/sec (±6.34%) 0.98
abiEncode 45786 ops/sec (±7.85%) 44252 ops/sec (±6.92%) 0.97
abiDecode 32289 ops/sec (±6.83%) 30419 ops/sec (±8.89%) 0.94
sign 1684 ops/sec (±1.08%) 1656 ops/sec (±4.08%) 0.98
verify 373 ops/sec (±0.72%) 373 ops/sec (±0.78%) 1

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.