Skip to content

Conversation

@zen0wu
Copy link
Contributor

@zen0wu zen0wu commented Mar 15, 2018

Fixes #

🚀 Description

This changes ECRecovery's recover method from public to internal. ECRecovery is a utility function. Defining it as public would mean anyone who uses it would have to deploy it separately, causing extra gas, which seems overkill. Internalizing it saves all that.

It doesn't seem to break any tests.

  • 📘 I've reviewed the OpenZeppelin Contributor Guidelines
  • ✅ I've added tests where applicable to test my new functionality.
  • 📖 I've made sure that my contracts are well-documented.
  • 🎨 I've run the JS/Solidity linters and fixed any issues (npm run lint:all:fix).

Copy link
Contributor

@facuspagnuolo facuspagnuolo left a comment

Choose a reason for hiding this comment

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

LGTM

@facuspagnuolo facuspagnuolo merged commit e299a79 into OpenZeppelin:master Mar 22, 2018
frangio pushed a commit to frangio/openzeppelin-contracts that referenced this pull request Apr 5, 2018
…in#818)

* Change ECRecovery recover method's visibility to internal

* Adopt the test

* Remove unused imports
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