Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ON HOLD] Tuple and array arguments supported in resim #1727

Draft
wants to merge 8 commits into
base: develop
Choose a base branch
from
Draft
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
3 changes: 3 additions & 0 deletions simulator/src/resim/cmd_call_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ pub struct CallFunction {
pub function_name: String,

/// The call arguments, such as "5", "hello", "<resource_address>:<amount>" and "<resource_address>:<nf_local_id1>,<nf_local_id2>"
/// Tuple argument shall be put within round brackets and delimited with ',' eg. "(<resource_address>,<nf_local_id>)"
/// Array argument values shall be put within square brackets and delimited with ',' eg. "[<nf_local_id1>,<nf_local_id2>]"
#[clap(verbatim_doc_comment)]
pub arguments: Vec<String>,

/// The proofs to add to the auth zone, in form of "<resource_address>:<amount>" or "<resource_address>:<nf_local_id1>,<nf_local_id2>"
Expand Down
3 changes: 3 additions & 0 deletions simulator/src/resim/cmd_call_method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ pub struct CallMethod {
pub method_name: String,

/// The call arguments, such as "5", "hello", "<resource_address>:<amount>" and "<resource_address>:<nf_local_id1>,<nf_local_id2>"
/// Tuple argument shall be put within round brackets and delimited with ',' eg. "(<resource_address>,<nf_local_id>)"
/// Array argument values shall be put within square brackets and delimited with ',' eg. "[<nf_local_id1>,<nf_local_id2>]"
#[clap(verbatim_doc_comment)]
pub arguments: Vec<String>,

/// The proofs to add to the auth zone, in form of "<resource_address>:<amount>" or "<resource_address>:<nf_local_id1>,<nf_local_id2>"
Expand Down
Loading
Loading