Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Using bindings to deploy #801

Unanswered
Dodecahedr0x asked this question in Help
Discussion options

Hi,

I recently started migrating my project to foundry and so far it has been great.

I'm at the phase where I want to deploy my entire system to testnet. What I thought the steps would be:

  1. Build the contracts
  2. Generate rust bindings
  3. Use the generated bindings in a rust program to create my deploy procedure.

Sadly, I haven't been able to make it work: bindings only contain the ABI and the ContractFactory requires the bytecode.
In the example, it uses ethers to compile inside the program, which gives the byte code and ABI but is redundant since I already built.

Is there a way to get a ContractFactory using only the binding? If not, what's the most compact way to deploy contracts knowing that the deploy procedure is a bit complex and bash+forge+cast would be less readable.

As a suggestion, I would have loved to have a factory in the bindings that knows the type of the constructor arguments

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /