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

How to deploy custom contracts and add custom pre-funded address? #723

Closed
Unded opened this issue Jul 17, 2024 · 1 comment
Closed

How to deploy custom contracts and add custom pre-funded address? #723

Unded opened this issue Jul 17, 2024 · 1 comment

Comments

@Unded
Copy link

Unded commented Jul 17, 2024

Hi, I am testing an application to send and track transactions.
Previously, before the ethereum-go version 1.4.X, I used a custom docker image with deployed ERC20, ERC721, other custom contracts and a pre-funded address that holds all of the tokens.

However, the Private Networks guide is now marked as outdated, so I need to move all pre-defined contracts to the ethereum-package and I have several questions.

  1. Is it possible to use the network_params.yaml config to specify the pre-funded address instead of the genesis_constants.star?
  2. Is there any additional information how to deploy a contract (let's say ERC20 contract) from the specific pre-funded address?
@barnabasbusa
Copy link
Contributor

  1. You can use your own custom mnemonic, and it will automatically generate the first 20 addresses of that mnemonic to be prefunded.
  2. Deploying a contract would be exactly the same method as you have done it previously. You will have to interact with one of your rpc participants.

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