starknet-foundry icon indicating copy to clipboard operation
starknet-foundry copied to clipboard

Deploy contract by name

Open Arcticae opened this issue 7 months ago • 0 comments

Which components does the task require to be changed? (think hard pls)

sncast

Description

Sometimes a user wants to deploy from cast without previous declaration. We should detect if the contract was declared (and declare it if it's not done already), and then deploy it when --contract-name is passed to deploy instead of --class-hash.

Recompilation and recalculating hash every time it's executed, will be necessary to make it work (we have to check if it's actually the same).

This should probably include some verbosity about transactions that are actually made during the process.

Arcticae avatar Jul 05 '24 10:07 Arcticae