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 first deployed smart contract address evaluation [Feature Request] #5

Closed
k06a opened this issue Oct 18, 2018 · 3 comments
Closed

Comments

@k06a
Copy link

k06a commented Oct 18, 2018

No description provided.

@bokub
Copy link
Owner

bokub commented Oct 18, 2018

Can you explain, please?

@k06a
Copy link
Author

k06a commented Oct 18, 2018

https://github.com/MyEtherWallet/VanityEth/blob/master/libs/VanityEth.js#L36:

var getDeterministicContractAddress = function(address, nonce = 0) {
    return '0x' + ethUtils.sha3(ethUtils.rlp.encode([address, nonce])).slice(12).toString('hex');
}

I would like to generate wallet which will deploy its first smart contract to a pretty address.

@bokub
Copy link
Owner

bokub commented Oct 18, 2018

Vanity-ETH doesn't support contract addresses, and that feature is not planned, I'm sorry.

Here is what you can do:

  • Clone the project
  • Run npm i
  • Edit vanity.js according to your needs
  • Run npm run dev to use your version of vanity-ETH locally.

@bokub bokub closed this as completed Oct 18, 2018
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

No branches or pull requests

2 participants