Skip to content

Commit

Permalink
Support invoke script Array type argument (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-prokhorov authored Oct 18, 2024
1 parent c5920d8 commit 141443f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "waves-rust"
version = "0.2.5"
version = "0.2.6"
edition = "2021"
rust-version = "1.56"
authors = ["Waves Labs <[email protected]>", "Alexandr Devyatkin <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion src/model/transaction/invoke_script_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ fn map_args(value: &Value) -> Result<Vec<Arg>> {
"binary" | "ByteVector" => Arg::Binary(Base64String::from_string(
&JsonDeserializer::safe_to_string_from_field(&arg, "value")?,
)?),
"list" | "List" => {
"list" | "List" | "Array" => {
let result = map_args(&arg["value"])?;
Arg::List(result)
}
Expand Down

0 comments on commit 141443f

Please sign in to comment.