Open gregnazario opened 1 year ago
@gregnazario
let save_file = SaveFile {
output_file: self.json_output_file,
prompt_options: self.publish_package.txn_options.prompt_options,
};
ref: https://github.com/aptos-labs/aptos-core/blob/main/crates/aptos/src/move_tool/mod.rs#L839-L841
My first thoughts was to have a BuildPackageBase
removing the txn_options
which can re-use in other part, but then I realized the buildPublishPayload
is using prompt_options
from txn_options
. I guess it should be safe to remove and make it as a separated flag?
@gregnazario
let save_file = SaveFile { output_file: self.json_output_file, prompt_options: self.publish_package.txn_options.prompt_options, };
ref: https://github.com/aptos-labs/aptos-core/blob/main/crates/aptos/src/move_tool/mod.rs#L839-L841
My first thoughts was to have a
BuildPackageBase
removing thetxn_options
which can re-use in other part, but then I realized thebuildPublishPayload
is usingprompt_options
fromtxn_options
. I guess it should be safe to remove and make it as a separated flag?
prompt_options
are needed for named addresses, but this can be added separately from txn_options and remove txn_options
There's a ton of transaction submission flags in this command, though it doesn't submit a transaction. We should clean this up.