generated from scaffold-eth/scaffold-eth
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use NETWORKS_EXTRA_DATA for api keys in abi.ts, Use isZeroAddress fro…
…m SE-2 to detect zero addresses
- Loading branch information
1 parent
9a8e543
commit 12e52ed
Showing
3 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// To be used in JSON.stringify when a field might be bigint | ||
// https://wagmi.sh/react/faq#bigint-serialization | ||
export const replacer = (_key: string, value: unknown) => (typeof value === "bigint" ? value.toString() : value); | ||
|
||
export const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000"; | ||
|
||
export const isZeroAddress = (address: string) => address === ZERO_ADDRESS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters