diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..c7deb4a --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +# Mock/bypass settings for development +VITE_OPCHAN_MOCK_ORDINAL_CHECK=false \ No newline at end of file diff --git a/src/lib/identity/ordinal.ts b/src/lib/identity/ordinal.ts index 8fc0474..6f18341 100644 --- a/src/lib/identity/ordinal.ts +++ b/src/lib/identity/ordinal.ts @@ -10,16 +10,14 @@ export class OrdinalAPI { */ async getOperatorDetails(address: string): Promise { - // Optionally Uncomment to bypass verification in development mode - - // if (process.env.NODE_ENV === 'development') { - // console.log(`[DEV] Bypassing ordinal verification for address: ${address}`); - // return { - // has_operators: true, - // error_message: '', - // data: [] - // }; - // } + if (import.meta.env.VITE_OPCHAN_MOCK_ORDINAL_CHECK === 'true') { + console.log(`[DEV] Bypassing ordinal verification for address: ${address}`); + return { + has_operators: true, + error_message: '', + data: [] + }; + } const url = `${BASE_URL}/${address}/detail/`;