diff --git a/framework/base/src/types/flags/esdt_token_type.rs b/framework/base/src/types/flags/esdt_token_type.rs index e88206e3af..2348254455 100644 --- a/framework/base/src/types/flags/esdt_token_type.rs +++ b/framework/base/src/types/flags/esdt_token_type.rs @@ -1,3 +1,5 @@ +use multiversx_sc_derive::ManagedVecItem; + use crate::codec::*; const ESDT_TYPE_FUNGIBLE: &[u8] = b"FungibleESDT"; @@ -10,7 +12,7 @@ use crate as multiversx_sc; // needed by the TypeAbi generated code use crate::derive::TypeAbi; // Note: In the current implementation, SemiFungible is never returned -#[derive(Clone, PartialEq, Eq, Debug, TypeAbi)] +#[derive(Clone, PartialEq, Eq, Debug, TypeAbi, ManagedVecItem)] pub enum EsdtTokenType { Fungible, NonFungible, diff --git a/framework/base/src/types/managed/wrapped/esdt_token_data.rs b/framework/base/src/types/managed/wrapped/esdt_token_data.rs index 21172fe9ac..d0148b318e 100644 --- a/framework/base/src/types/managed/wrapped/esdt_token_data.rs +++ b/framework/base/src/types/managed/wrapped/esdt_token_data.rs @@ -1,3 +1,5 @@ +use multiversx_sc_derive::ManagedVecItem; + use crate::{ api::ManagedTypeApi, codec, @@ -14,7 +16,7 @@ use crate::derive::TypeAbi; const DECODE_ATTRIBUTE_ERROR_PREFIX: &[u8] = b"error decoding ESDT attributes: "; -#[derive(TopDecode, TopEncode, NestedDecode, NestedEncode, TypeAbi, Debug)] +#[derive(TopDecode, TopEncode, NestedDecode, NestedEncode, TypeAbi, Debug, ManagedVecItem)] pub struct EsdtTokenData { pub token_type: EsdtTokenType, pub amount: BigUint,