AztecProtocol / barretenberg

Apache License 2.0
129 stars 78 forks source link

Get different contract-method name on `codegen-verifier` #974

Open hpmaxi opened 2 months ago

hpmaxi commented 2 months ago

Problem

When trying to deploy a contract generated by codegen-verifier, if more than one was generated for different verification tasks, the next command fails because of this

await viem.deployContract('UltraVerifier');

I think, that in case of receiving an argument, should be interpolated here.

Happy Case

Have a way to rename the target contract/method

Project Impact

Nice-to-have

Impact Context

No response

Workaround

Yes

Workaround Description

Use the fully qualified path/name

await viem.deployContract('contract/folder/plonk_vk.sol:UltraVerifier');

Additional Context

No response

Would you like to submit a PR for this Issue?

None

Support Needs

No response