Initial commit with 🏗️ Scaffold-ETH 2 @ 1.0.5
This commit is contained in:
8
packages/nextjs/utils/scaffold-eth/common.ts
Normal file
8
packages/nextjs/utils/scaffold-eth/common.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// 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;
|
||||
Reference in New Issue
Block a user