Skip to content

Commit

Permalink
(fix) Fix the bug induced by the typechecker's last attempt to avoid …
Browse files Browse the repository at this point in the history
…bugs
  • Loading branch information
rrw-zilliqa committed Feb 14, 2025
1 parent e82d52f commit e1fbc79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useERC1967.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const GetStorageQuery = (
queryKey: ["getStorageAt", address, slot],
queryFn: () => {
if (address === undefined) {
return Promise.resolve("0");
return Promise.resolve(undefined);
} else {
return provider.getStorage(address, slot);
}
Expand Down

0 comments on commit e1fbc79

Please sign in to comment.