From 6447545ec4ea3c0dd6f00041e8ad64c375bd2944 Mon Sep 17 00:00:00 2001 From: Rostyslav Tyshko Date: Wed, 9 Apr 2025 01:32:16 -0400 Subject: [PATCH] serialiaze `PublicSCContext` --- node_core/src/storage/public_context.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node_core/src/storage/public_context.rs b/node_core/src/storage/public_context.rs index db0503f..f4c406c 100644 --- a/node_core/src/storage/public_context.rs +++ b/node_core/src/storage/public_context.rs @@ -1,9 +1,11 @@ use std::collections::BTreeMap; use accounts::account_core::{AccountAddress, AccountPublicMask}; +use serde::{Serialize}; use storage::merkle_tree_public::TreeHashType; ///Strucutre, representing context, given to a smart contract on a call +#[derive(Serialize)] pub struct PublicSCContext { pub caller_address: AccountAddress, pub caller_balance: u64,