hashgraph / hashgraph/hedera-sdk-reference

Add optional parameter to `ContractCreateFlow` to avoid File removal

Open
#138 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
HTML
Stars
7
Forks
3
PR merge metrics
No merged PRs in 30d

Description

### Problem

`ContractCreateFlow` removes the file used as a template for the smart contract deployment.
Many times, especially in development or testing environments, the removal is not useful and forces the developer to upload the smart contract again, instead of using the previous created file.

### Solution

- Add a parameter to the `ContractCreateFlow` to let the user override the default behavior, keeping the smart contract template file after the deploy.
- `ContractCreateFlow` should return the FileId to the user (via return value or debug/info logs), so it can be easily used later.
- By default, the removal happens as usual.

### Alternatives

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.