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

bytecode: Add push(opcode, ...) #286

Merged
merged 1 commit into from
Jan 17, 2021
Merged

bytecode: Add push(opcode, ...) #286

merged 1 commit into from
Jan 17, 2021

Conversation

chfast
Copy link
Member

@chfast chfast commented Jan 16, 2021

No description provided.

inline bytecode push(evmc_opcode opcode, const bytecode& data)
{
if (opcode < OP_PUSH1 || opcode > OP_PUSH32)
throw std::invalid_argument{"invalid push opcode" + std::to_string(opcode)};
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
throw std::invalid_argument{"invalid push opcode" + std::to_string(opcode)};
throw std::invalid_argument{"invalid push opcode " + std::to_string(opcode)};

Copy link
Member

@axic axic left a comment

Choose a reason for hiding this comment

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

Apart from the error message spacing looks good.

@codecov-io
Copy link

codecov-io commented Jan 16, 2021

Codecov Report

Merging #286 (2174f86) into master (1e739f4) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #286   +/-   ##
=======================================
  Coverage   99.75%   99.75%           
=======================================
  Files          24       24           
  Lines        3634     3655   +21     
=======================================
+ Hits         3625     3646   +21     
  Misses          9        9           
Flag Coverage Δ
unittests 99.75% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
test/unittests/bytecode_test.cpp 100.00% <100.00%> (ø)
test/unittests/evm_test.cpp 99.69% <100.00%> (ø)
test/utils/bytecode.hpp 100.00% <100.00%> (ø)

@chfast chfast merged commit 19a59b9 into master Jan 17, 2021
@chfast chfast deleted the bytecode_helpers branch January 17, 2021 08:27
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