-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add Faker::Ethereum #1004
Conversation
why not merge this change |
There was a problem hiding this 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 🥇
a359def
to
a5d7731
Compare
There was a problem hiding this 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 theEthereum
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
.
I finished the changes @kaizenx thanks for contributing :) |
The eth address in the example result is invalid.
Add Faker::Ethereum
The eth address in the example result is invalid.
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.