Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

Set language for solidity compiler #1217

Merged
merged 1 commit into from
Jun 17, 2019
Merged

Set language for solidity compiler #1217

merged 1 commit into from
Jun 17, 2019

Conversation

yann300
Copy link
Collaborator

@yann300 yann300 commented Jun 17, 2019

so it can be switched to Yul

@@ -94,7 +100,7 @@ function Compiler (handleImportCall) {

var result
try {
var input = compilerInput(source.sources, {optimize: optimize, evmVersion: evmVersion, target: source.target})
var input = compilerInput(source.sources, {optimize: optimize, evmVersion: evmVersion, language: language, target: source.target})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For making it easier to read you could do : { optimize, evmVersion, language, taget: source.target }

@@ -301,7 +307,7 @@ function Compiler (handleImportCall) {
compileJSON = function (source) {
jobs.push({sources: source})
worker.postMessage({cmd: 'compile', job: jobs.length - 1, input: compilerInput(source.sources,
{optimize: optimize, evmVersion: evmVersion, target: source.target})})
{optimize: optimize, evmVersion: evmVersion, language: language, target: source.target})})
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@@ -29,6 +29,8 @@ function Compiler (handleImportCall) {

var evmVersion = null

var language = 'Solidity'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use let here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes you're right but i'd prefer to let this TODO for the typescript rewrite (all the other var are var...)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants