From ac5814414fc24970c4e829b26c5589e46d70b62b Mon Sep 17 00:00:00 2001 From: Andrei Marinica Date: Tue, 1 Oct 2024 14:29:51 +0300 Subject: [PATCH] sdk - added support for empty return data --- sdk/core/src/data/vm.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/core/src/data/vm.rs b/sdk/core/src/data/vm.rs index 4b6e15539d..f1af94b10a 100644 --- a/sdk/core/src/data/vm.rs +++ b/sdk/core/src/data/vm.rs @@ -85,6 +85,7 @@ pub struct StorageUpdateApi { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct VMOutputApi { + #[serde(default)] pub return_data: Vec, pub return_code: String, pub return_message: String,