diff --git a/.changeset/breezy-parrots-exist.md b/.changeset/breezy-parrots-exist.md new file mode 100644 index 0000000000..487e4a30b5 --- /dev/null +++ b/.changeset/breezy-parrots-exist.md @@ -0,0 +1,8 @@ +--- +"@wagmi/core": patch +"wagmi": patch +"@wagmi/vue": patch +"@wagmi/connectors": patch +--- + +Fixed invocation of default storage. diff --git a/packages/core/src/createStorage.ts b/packages/core/src/createStorage.ts index 0f92e0f074..8995ca3202 100644 --- a/packages/core/src/createStorage.ts +++ b/packages/core/src/createStorage.ts @@ -96,8 +96,12 @@ export function getDefaultStorage() { return noopStorage })() return { - getItem: storage.getItem, - removeItem: storage.removeItem, + getItem(key) { + return storage.getItem(key) + }, + removeItem(key) { + storage.removeItem(key) + }, setItem(key, value) { try { storage.setItem(key, value)