From 470771ec6b152b46c2741eb80d6c8f0f3c8607b2 Mon Sep 17 00:00:00 2001 From: Pavel Prokhorov Date: Wed, 9 Oct 2024 18:34:57 +0300 Subject: [PATCH] Support invoke script Array type argument --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/model/transaction/invoke_script_transaction.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 898b395..5464deb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1703,7 +1703,7 @@ checksum = "1c38c045535d93ec4f0b4defec448e4291638ee608530863b1e2ba115d4fff7f" [[package]] name = "waves-rust" -version = "0.2.4" +version = "0.2.6" dependencies = [ "base64", "blake2", diff --git a/Cargo.toml b/Cargo.toml index 17e849d..74d537c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 ", "Alexandr Devyatkin "] diff --git a/src/model/transaction/invoke_script_transaction.rs b/src/model/transaction/invoke_script_transaction.rs index 9dfed85..4a1fbac 100644 --- a/src/model/transaction/invoke_script_transaction.rs +++ b/src/model/transaction/invoke_script_transaction.rs @@ -228,7 +228,7 @@ fn map_args(value: &Value) -> Result> { "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) }