From 012907032b532a438fce48f407470250cbc8f0c6 Mon Sep 17 00:00:00 2001 From: jxom <7336481+jxom@users.noreply.github.com> Date: Mon, 23 Dec 2024 20:55:02 +0200 Subject: [PATCH] fix: resolves #4475 --- .changeset/many-pianos-join.md | 8 ++++++++ packages/core/src/createStorage.ts | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changeset/many-pianos-join.md diff --git a/.changeset/many-pianos-join.md b/.changeset/many-pianos-join.md new file mode 100644 index 0000000000..8aa6df67c5 --- /dev/null +++ b/.changeset/many-pianos-join.md @@ -0,0 +1,8 @@ +--- +"@wagmi/core": patch +"@wagmi/connectors": patch +"wagmi": patch +"@wagmi/vue": patch +--- + +Fixed assignment in `getDefaultStorage`. diff --git a/packages/core/src/createStorage.ts b/packages/core/src/createStorage.ts index 1bed370355..0f92e0f074 100644 --- a/packages/core/src/createStorage.ts +++ b/packages/core/src/createStorage.ts @@ -96,7 +96,8 @@ export function getDefaultStorage() { return noopStorage })() return { - ...storage, + getItem: storage.getItem, + removeItem: storage.removeItem, setItem(key, value) { try { storage.setItem(key, value)