Skip to content

Cleanup: Remove ABI.h#2807

Merged
chriseth merged 1 commit intodevelopfrom
removeABIh
Aug 25, 2017
Merged

Cleanup: Remove ABI.h#2807
chriseth merged 1 commit intodevelopfrom
removeABIh

Conversation

@chriseth
Copy link
Contributor

No description provided.

@chriseth chriseth mentioned this pull request Aug 25, 2017
BOOST_REQUIRE(ret.size() == 0x20);
BOOST_CHECK(std::count(ret.begin(), ret.begin() + 12, 0) == 12);
return eth::abiOut<u160>(ret);
return u160(u256(h256(ret)));
Copy link
Contributor

Choose a reason for hiding this comment

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

Can the typecast work with skipping u256?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure, but I would also prefer doing it this way, because then we can be sure that we get the lower-endian part.

@chriseth chriseth merged commit 1437521 into develop Aug 25, 2017
@axic axic deleted the removeABIh branch August 25, 2017 12:54
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