Skip to content

Commit

Permalink
chore!: drop https scheme workaround for hosted compiler
Browse files Browse the repository at this point in the history
fixup compiler
  • Loading branch information
davidyuk committed Jan 24, 2022
1 parent 17e6f36 commit 9fc0a02
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion src/contract/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
10 changes: 0 additions & 10 deletions src/utils/swagger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 9fc0a02

Please sign in to comment.