Skip to content

Patch soljson.js to provide backwards compatibility with older emscripten versions. #5831

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

Merged
merged 1 commit into from
Jan 21, 2019

Conversation

chriseth
Copy link
Contributor

Fixes #5830

@chriseth chriseth force-pushed the soljsonPatchBackwardsCompatible branch from c75fe31 to 4c9bbd8 Compare January 21, 2019 14:33
@@ -96,6 +96,8 @@ make -j 4

cd ..
mkdir -p upload
# Patch soljson.js to provide backwards-compatibility with older emscripten versions
echo ";/* backwards compatibility */ Module['Runtime'] = Module;" >> build/libsolc/soljson.js
Copy link
Member

Choose a reason for hiding this comment

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

Do we need the ; at the end? Resp. is it even valid to have it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

works in node

@chriseth
Copy link
Contributor Author

Tested with solc-js 0.5.0, all tests are green apart from the version test (as expected).

@axic
Copy link
Member

axic commented Jan 21, 2019

Wait a second. How did Zeppelin tests finish before this PR if they use truffle and an old solc-js?

@axic
Copy link
Member

axic commented Jan 21, 2019

Because we patch solc to use solc master: https://github.com/ethereum/solidity/blob/develop/test/externalTests.sh#L64

If we are serious about #5830 then we should always patch it to 0.5.0.

@chriseth
Copy link
Contributor Author

I think this was needed while we were preparing for 0.5.0, we might want to revert the other patch now - or run with both versions.

Anyway, is this PR here good to go?

@axic
Copy link
Member

axic commented Jan 21, 2019

I'd prefer if this could change the Zeppelin test to use solc-js 0.5.0 so that we can confirmation it works and sets the stage for future changes adhering to this rule.

@chriseth
Copy link
Contributor Author

I'll merge this now so that we get a nightly build with it and create a new PR that also changes zeppelin.

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

Successfully merging this pull request may close these issues.

3 participants