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.
This commit is contained in:
Vladimir Pouzanov 2023-03-27 04:57:05 +01:00 committed by GitHub
parent 897e9de8ad
commit c38d3d8b3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(),