Skip to content

Fix encoded EndToEnd inputs.#2961

Merged
axic merged 1 commit intodevelopfrom
fixEndToEndTestsInputs
Sep 26, 2017
Merged

Fix encoded EndToEnd inputs.#2961
axic merged 1 commit intodevelopfrom
fixEndToEndTestsInputs

Conversation

@chriseth
Copy link
Contributor

Some tests were missing additional inputs or had incorrect encodings.

@chriseth chriseth requested a review from axic September 25, 2017 17:34
ABI_CHECK(callContractFunction("copy()"), encodeArgs(true));
BOOST_CHECK(storageEmpty(m_contractAddress));
ABI_CHECK(callContractFunction("set(uint256,bytes,uint256)", 12, u256(data.length()), 13, data), encodeArgs(true));
ABI_CHECK(callContractFunction("set(uint256,bytes,uint256)", 12, 0x60, 13, u256(data.length()), data), encodeArgs(true));
Copy link
Contributor

@axic axic Sep 26, 2017

Choose a reason for hiding this comment

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

Perhaps could use encodeDyn here and above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No it cannot, because the offset is different.

This comment was marked as off-topic.

@axic axic merged commit eb5a6aa into develop Sep 26, 2017
@axic axic deleted the fixEndToEndTestsInputs branch September 26, 2017 11:09
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

Comments