Skip to content

ECRecover test should revert because of wrong calldata size#1050

Merged
shrugs merged 5 commits into
OpenZeppelin:masterfrom
axic:wrong_calldata
Jul 16, 2018
Merged

ECRecover test should revert because of wrong calldata size#1050
shrugs merged 5 commits into
OpenZeppelin:masterfrom
axic:wrong_calldata

Conversation

@leonardoalt

@leonardoalt leonardoalt commented Jun 26, 2018

Copy link
Copy Markdown

🚀 Description

This is a change for Solidity 0.5.0, see argotorg/solidity#4224

This test should now revert because the first argument is bytes32 but fewer bytes are sent.

One point I wanted to ask is whether more tests regarding that are wanted/needed, especially for the second argument (bytes), for example: too short data, too long padded correct data, correct length but invalid data.

Please not that only the latest commit is relevant for this PR.

closes #1034

@shrugs

shrugs commented Jul 10, 2018

Copy link
Copy Markdown
Contributor

closes #1034 as well

@shrugs shrugs merged commit 99e4b08 into OpenZeppelin:master Jul 16, 2018
@axic axic deleted the wrong_calldata branch July 17, 2018 02:29
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