Open gianfra-t opened 1 year ago
@gianfra-t you made this PR a draft and I would also ask you to only continue after we removed Nabla from this repository, see my comment here: https://github.com/pendulum-chain/wasm-deploy/pull/24#issuecomment-1856642720
Branched from #22.
Allows the reuse of contracts used on the session, or alternatively use an address for an already deployed contract in the network.
In this proposed implementation, the
deploy
function in the deployments scripts accepts 2 new arguments:allowReuse: bool
: If a deploy script runs a second time and uses a contract with the same arguments and this flag intrue
, the script will reuse the previous contract on it's calls and skip the deployment of a new contract.preDeployedAddress: string
: Pass the address of an existing contract to be used. If this parameter exists, any deployment or reuse checking will be skipped, the instance will simply point to that address.