From c38d3d8b3c5a54f05df3a8a7d1c00489b01a968a Mon Sep 17 00:00:00 2001 From: Vladimir Pouzanov Date: Mon, 27 Mar 2023 04:57:05 +0100 Subject: [PATCH] Allow to run with isDevelopment on ethereum-like chains (#9227) Currently any `isEthereum==true` chain will force the development mode off, making it impossible to add any extra types as needed. --- packages/react-api/src/Api.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-api/src/Api.tsx b/packages/react-api/src/Api.tsx index 8f705fe1b9..f449c8c170 100644 --- a/packages/react-api/src/Api.tsx +++ b/packages/react-api/src/Api.tsx @@ -187,7 +187,7 @@ async function loadOnReady (api: ApiPromise, endpoint: LinkOption | null, inject chainSS58, hasInjectedAccounts: injectedAccounts.length !== 0, isApiReady: true, - isDevelopment: isEthereum ? false : isDevelopment, + isDevelopment, isEthereum, specName: api.runtimeVersion.specName.toString(), specVersion: api.runtimeVersion.specVersion.toString(),