-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Support the standard JSON via compile() too #122
Conversation
Needs tests. |
62a6309
to
1597b73
Compare
b7549b0
to
e8ece8b
Compare
|
||
if (isStandardJSON) { | ||
// NOTE: takes second argument as "readCallback" | ||
return JSON.parse(compileStandardWrapper(input, optimise)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compileStandardWrapper
is only assigned in line 83 / 105
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Javascript scoping... 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, it's a callback!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not convinced this is working.
Probably it isn't yet, it is more about discussing the API. Eventually at 0.5.0 I'd like to replace |
Yes, I think it is a good idea to make compile to also take json-io. |
This needs tests. |
@@ -104,6 +104,19 @@ There is also a direct method, `compileStandard`, which is only present on recen | |||
|
|||
Starting from version 0.4.20 a Semver compatible version number can be retrieved on every compiler release, including old ones, using the `semver()` method. | |||
|
|||
#### From version 0.4.21 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh man, only if we'd have merged this at 0.4.21, it wouldn't be too big a breaking change anymore :)
Part of #120 and ethereum/solidity#3452