mirror of
https://github.com/logos-messaging/OpChan.git
synced 2026-04-27 12:33:37 +00:00
feat(env): add mock ordinal check setting for dev environment
Signed-off-by: Ashis Kumar Naik <ashishami2002@gmail.com>
This commit is contained in:
parent
7d278d6fc2
commit
e29ad8df9f
2
.env.example
Normal file
2
.env.example
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Mock/bypass settings for development
|
||||||
|
VITE_OPCHAN_MOCK_ORDINAL_CHECK=false
|
||||||
@ -10,16 +10,14 @@ export class OrdinalAPI {
|
|||||||
*/
|
*/
|
||||||
async getOperatorDetails(address: string): Promise<OrdinalApiResponse> {
|
async getOperatorDetails(address: string): Promise<OrdinalApiResponse> {
|
||||||
|
|
||||||
// Optionally Uncomment to bypass verification in development mode
|
if (import.meta.env.VITE_OPCHAN_MOCK_ORDINAL_CHECK === 'true') {
|
||||||
|
console.log(`[DEV] Bypassing ordinal verification for address: ${address}`);
|
||||||
// if (process.env.NODE_ENV === 'development') {
|
return {
|
||||||
// console.log(`[DEV] Bypassing ordinal verification for address: ${address}`);
|
has_operators: true,
|
||||||
// return {
|
error_message: '',
|
||||||
// has_operators: true,
|
data: []
|
||||||
// error_message: '',
|
};
|
||||||
// data: []
|
}
|
||||||
// };
|
|
||||||
// }
|
|
||||||
|
|
||||||
const url = `${BASE_URL}/${address}/detail/`;
|
const url = `${BASE_URL}/${address}/detail/`;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user