-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Compatibility fixes for solc-js TypeScript migration #12583
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
Conversation
353f1a5 to
be7485c
Compare
|
I found two more places where we do not run |
| echo "Prepare solc-js." | ||
| cd /root/solc-js | ||
| npm install >/dev/null 2>&1 | ||
| npm run build >/dev/null 2>&1 |
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.
Not sure about this one and these scripts are not actively tested but I'm adding it just in case.
|
Tests are still failing. |
Right, it does. You cannot run |
…stall it via npm from a local dir instead
…he binary before running verifyVersion
be7485c to
4e39513
Compare
|
solcjs commands for TypeScript|
Still something off in the tests apparently... |
|
Pushing a fix for bytecode comparison (turns out I still need to run Still working on the other fail. |
|
The test failure in solc-js external test is actually a bug in solc-js itself. The failing test is buggy but gets skipped due to missing Z3. It does not get skipped here :) We need to merge argotorg/solc-js#592 to fix it. |
|
The problem with Colony is harder. I think we may have actually broken backwards-compatibility with the Typescript change. Truffle does From what I'm reading, not having |
|
@stephensli What do you think about #12583 (comment)? Is that actually a breaking change or is there some easy workaround? |
|
So maybe we do need to do those manual function exports, so they are named. |
|
This is the way to get around, it should now function as expected, if you could use my changes to just verify that first, but this should be it. instead of exporting the default as the object, we rexport the entire content. |
… and install it via npm from a local dir instead
a06d36d to
f46e333
Compare
|
Force-pushed to retrigger tests after merging argotorg/solc-js#593 |
This PR adjusts the command we run from solc-js and adds
npm run buildrequired to compile the TypeScript code. It should be merged after argotorg/solc-js#566.