Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions algosdk/atomic_transaction_composer.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,14 @@ def __init__(
allow_empty_signatures: Optional[bool] = None,
allow_unnamed_resources: Optional[bool] = None,
extra_opcode_budget: Optional[int] = None,
fix_signers: Optional[bool] = None,
) -> None:
self.max_log_calls = max_log_calls
self.max_log_size = max_log_size
self.allow_empty_signatures = allow_empty_signatures
self.allow_unnamed_resources = allow_unnamed_resources
self.extra_opcode_budget = extra_opcode_budget
self.fix_signers = fix_signers

@staticmethod
def from_simulation_result(
Expand Down Expand Up @@ -307,6 +309,8 @@ def from_simulation_result(
eval_override.extra_opcode_budget = eval_override_dict[
"extra-opcode-budget"
]
if "fix-signers" in eval_override_dict:
eval_override.fix_signers = eval_override_dict["fix-signers"]

return eval_override

Expand Down
4 changes: 4 additions & 0 deletions algosdk/v2client/models/simulate_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class SimulateRequest:
allow_unnamed_resources: bool
extra_opcode_budget: int
exec_trace_config: SimulateTraceConfig
fix_signers: bool
round: Optional[int]

def __init__(
Expand All @@ -72,6 +73,7 @@ def __init__(
allow_unnamed_resources: bool = False,
extra_opcode_budget: int = 0,
exec_trace_config: Optional[SimulateTraceConfig] = None,
fix_signers: bool = False,
) -> None:
self.txn_groups = txn_groups
self.round = round
Expand All @@ -82,6 +84,7 @@ def __init__(
self.exec_trace_config = (
exec_trace_config if exec_trace_config else SimulateTraceConfig()
)
self.fix_signers = fix_signers

def dictify(self) -> Dict[str, Any]:
return {
Expand All @@ -94,4 +97,5 @@ def dictify(self) -> Dict[str, Any]:
"allow-empty-signatures": self.allow_empty_signatures,
"extra-opcode-budget": self.extra_opcode_budget,
"exec-trace-config": self.exec_trace_config.dictify(),
"fix-signers": self.fix_signers,
}
Loading