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

Add Faker::Ethereum #1004

Merged
merged 9 commits into from
Jul 1, 2018
Merged

Add Faker::Ethereum #1004

merged 9 commits into from
Jul 1, 2018

Conversation

kaizenx
Copy link
Contributor

@kaizenx kaizenx commented Aug 16, 2017

Added an Ethereum public address generator at

lib/faker/ethereum.rb

The faker generates a random 40 character hex string and concatenates it with a leading "0x"

Added a test for it at

test/test_faker_ethereum.rb

The test is a simple regex format check.

@freehere107
Copy link

freehere107 commented Jan 19, 2018

why not merge this change

Copy link
Member

@vbrazo vbrazo left a comment

Choose a reason for hiding this comment

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

Could you please rebase with master and fix the Rubocop violations?

I love this object 🥇

Copy link
Member

@vbrazo vbrazo left a comment

Choose a reason for hiding this comment

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

@kaizenx a couple of small things:

  • You should also update the README.md and add the Ethereum link, so users will be able to see your new object. All the objects are there.
  • Besides that, we should create another documentation file: doc/ethereum.md.

@vbrazo vbrazo changed the title Added an Ethereum public address generator Add Faker::Ethereum Jul 1, 2018
@vbrazo vbrazo merged commit c5bd060 into faker-ruby:master Jul 1, 2018
@vbrazo
Copy link
Member

vbrazo commented Jul 1, 2018

I finished the changes @kaizenx thanks for contributing :)

gaga5lala pushed a commit to gaga5lala/faker that referenced this pull request Feb 4, 2019
The eth address in the example result is invalid.
vbrazo pushed a commit that referenced this pull request Feb 4, 2019
The eth address in the example result is invalid.
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
The eth address in the example result is invalid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants