Skip to content
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

Remove old libsolc API (compileJSON, compileJSONMulti, compileJSONCallback) #5105

Merged
merged 3 commits into from
Nov 13, 2018

Conversation

axic
Copy link
Member

@axic axic commented Sep 27, 2018

Depends on #5104 and ethereum/solc-js#259.

Closes #3452.

s_outputBuffer = compileMulti(_input, _optimize, _readCallback);
return s_outputBuffer.c_str();
}
extern char const* compileStandard(char const* _input, CStyleReadFileCallback _readCallback) noexcept
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm kind of leaning towards keeping this single line for now (during the release candidate time) so that projects can easily test it with truffle.

Changelog.md Outdated
@@ -11,6 +11,8 @@ How to update your code:

Breaking Changes:
* ABI Encoder: Properly pad data from calldata (``msg.data`` and external function parameters). Use ``abi.encodePacked`` for unpadded encoding.
* C API (``libsolc``): Removed the ``version``, ``license``, ``compileSingle``, ``compileJSON``, ``compileJSONCallback`` methods
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps emphasize that this also applies to solc-js if used directly?

@codecov
Copy link

codecov bot commented Oct 1, 2018

Codecov Report

Merging #5105 into develop will decrease coverage by 0.08%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #5105      +/-   ##
===========================================
- Coverage     88.1%   88.01%   -0.09%     
===========================================
  Files          323      322       -1     
  Lines        32647    32319     -328     
  Branches      3873     3849      -24     
===========================================
- Hits         28763    28447     -316     
+ Misses        2585     2581       -4     
+ Partials      1299     1291       -8
Flag Coverage Δ
#all 88.01% <100%> (-0.09%) ⬇️
#syntax 28.04% <0%> (-0.08%) ⬇️

chriseth
chriseth previously approved these changes Oct 30, 2018
@chriseth chriseth force-pushed the libsolc-api branch 2 times, most recently from 174bfb1 to 8785f6e Compare November 6, 2018 07:38
@chriseth
Copy link
Contributor

chriseth commented Nov 6, 2018

I'm wondering whether the failure on travis is a problem or not.

@chriseth
Copy link
Contributor

chriseth commented Nov 6, 2018

I replaced the "npm install solc" by a 'git clone' so we get the updated solc-js version, this should fix the travis tests.

@axic
Copy link
Member Author

axic commented Nov 13, 2018

Cannot comment on the line, but the storebytecode needs to be fixed

                 console.log(contractName + ' ' + result['contracts'][contractName].bytecode)

This doesn't point to the bytecode.

@axic
Copy link
Member Author

axic commented Nov 13, 2018

Rebased and fixed storebytecode.sh

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.

2 participants