From eb64cdca4a944495e8bc5f7887f1e047aa0de82b Mon Sep 17 00:00:00 2001 From: Danila Simonov Date: Tue, 21 Nov 2023 10:05:14 +0100 Subject: [PATCH] Fix default eth envs + fix fetch types for address verificaion --- configs/envs/.env.eth | 9 +-------- ui/addressVerification/types.ts | 8 ++++---- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/configs/envs/.env.eth b/configs/envs/.env.eth index 18385af3f5..5493cd7c08 100644 --- a/configs/envs/.env.eth +++ b/configs/envs/.env.eth @@ -49,11 +49,4 @@ NEXT_PUBLIC_OG_IMAGE_URL=https://github.com/blockscout/frontend-configs/blob/mai # ylide NEXT_PUBLIC_IS_FORUM_SUPPORTED=true NEXT_PUBLIC_FORUM_INDEXER_URL=https://forum-blockscout.ylide.io -NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=e9deead089b3383b2db777961e3fa244 - -# NEXT_PUBLIC_APP_PORT=443 -# NEXT_PUBLIC_APP_PROTOCOL=https -# NEXT_PUBLIC_APP_HOST=bss.ylide.io - -# NEXT_PUBLIC_API_HOST=bss.ylide.io -# NEXT_PUBLIC_API_PORT=443 \ No newline at end of file +NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=e9deead089b3383b2db777961e3fa244 \ No newline at end of file diff --git a/ui/addressVerification/types.ts b/ui/addressVerification/types.ts index e2bc66180d..1340b5ad38 100644 --- a/ui/addressVerification/types.ts +++ b/ui/addressVerification/types.ts @@ -23,10 +23,10 @@ export type AddressCheckResponseSuccess = { status: 'SUCCESS'; result: AddressCheckStatusSuccess; } | -{ status: 'IS_OWNER_ERROR' } | -{ status: 'OWNERSHIP_VERIFIED_ERROR' } | -{ status: 'SOURCE_CODE_NOT_VERIFIED_ERROR' } | -{ status: 'INVALID_ADDRESS_ERROR' }; +{ status: 'IS_OWNER_ERROR'; payload?: { message?: string } } | +{ status: 'OWNERSHIP_VERIFIED_ERROR'; payload?: { message?: string } } | +{ status: 'SOURCE_CODE_NOT_VERIFIED_ERROR'; payload?: { message?: string } } | +{ status: 'INVALID_ADDRESS_ERROR'; payload?: { message?: string } }; export interface AddressVerificationResponseError { code: number;