Skip to content

Simplify contract compilation in the test framework#3615

Merged
chriseth merged 2 commits intodevelopfrom
test-framework
Feb 28, 2018
Merged

Simplify contract compilation in the test framework#3615
chriseth merged 2 commits intodevelopfrom
test-framework

Conversation

@axic
Copy link
Copy Markdown
Contributor

@axic axic commented Feb 27, 2018

No description provided.

@axic axic requested a review from chriseth February 27, 2018 18:32
@axic axic force-pushed the test-framework branch 2 times, most recently from 7fe4521 to dffbbb0 Compare February 27, 2018 19:06
BOOST_REQUIRE(obj.linkReferences.empty());
sendMessage(obj.bytecode + _arguments, true, _value);
return m_output;
return std::move(obj.bytecode);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh well, this cannot use move since it is still available after as m_compiler.object.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hm, then again .object is a reference, but we make a copy as obj, so we could do move.

@chriseth which one do you prefer: const& obj or move?

@axic
Copy link
Copy Markdown
Contributor Author

axic commented Feb 27, 2018

After this there are only 3 pieces calling the compiler directly:

  • SolidityExecutionFramework
  • AnalysisFramework
  • GasMeter

@chriseth chriseth merged commit fb8c4bd into develop Feb 28, 2018
@axic axic deleted the test-framework branch February 28, 2018 15:48
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