Skip to content

Commit a38919e

Browse files
committed
refactor(CLI): rename propose_from_sim... to batch_from_sim...
1 parent 92b1c86 commit a38919e

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

ape_safe/_cli/pending.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def ensure(cli_ctx, ecosystem, network, submitter, safe):
477477
cli_ctx.logger.info(
478478
f"Running queue script for nonce {nonce} ('{script_path}'):\n\n {cmd.help}\n"
479479
)
480-
# NOTE: This matches signature from `ape_safe.cli:propose_batch`
480+
# NOTE: This matches signature from `ape_safe.cli:batch_from_simulation`
481481
cmd.callback.__wrapped__.func(cli_ctx, network, submitter, nonce, safe)
482482

483483
if not network.is_fork:

ape_safe/cli.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def execute_safetx_flag(argname: str = "execute_safetx", **option_kwargs):
3333
return click.option("--execute/--propose", argname, **option_kwargs)
3434

3535

36-
def propose_from_simulation():
36+
def batch_from_simulation():
3737
"""
38-
Create and propose a new SafeTx from transaction receipts inside a fork.
38+
Create a new batch transaction from collected receipts after executing inside an isolated fork.
3939
4040
Usage::
4141
@@ -210,8 +210,12 @@ def new_cmd(
210210
return decorator
211211

212212

213+
# TODO: Remove in v1?
214+
propose_from_simulation = batch_from_simulation
215+
216+
213217
__all__ = [
218+
batch_from_simulation.__name__,
214219
execute_safetx_flag.__name__,
215-
propose_from_simulation.__name__,
216220
safe_argument.__name__,
217221
]

0 commit comments

Comments
 (0)