From 9fc0a02e7d26476f0645f9e472f4cf641c12cba8 Mon Sep 17 00:00:00 2001 From: Denis Davidyuk Date: Thu, 23 Dec 2021 23:01:46 +0300 Subject: [PATCH] chore!: drop https scheme workaround for hosted compiler fixup compiler --- src/contract/compiler.js | 2 +- src/utils/swagger.js | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/contract/compiler.js b/src/contract/compiler.js index e65d8ce7c4..76d36122bc 100644 --- a/src/contract/compiler.js +++ b/src/contract/compiler.js @@ -197,5 +197,5 @@ export default AsyncInit.compose(ContractBase, { } }) -const COMPILER_GE_VERSION = '6.0.0' +const COMPILER_GE_VERSION = '6.1.0' const COMPILER_LT_VERSION = '7.0.0' diff --git a/src/utils/swagger.js b/src/utils/swagger.js index fd229fc2a0..147ca4b32b 100644 --- a/src/utils/swagger.js +++ b/src/utils/swagger.js @@ -52,16 +52,6 @@ export default async ( spec = spec || await (await fetch(specUrl)).json() const jsonImp = disableBigNumbers ? JSON : JsonBig - if ( - [ - 'https://compiler.aepps.com', - 'https://latest.compiler.aepps.com' - ].includes(new URL(specUrl).origin) || - new URL(specUrl).origin.includes('https://') - ) { - spec.schemes = ['https'] - } - const [external, internal] = await Promise.all([specUrl, internalUrl].map((url) => { if (!url) return null return SwaggerClient({