//! This code was AUTOGENERATED using the Codama library.
use {carbon_core::graphql::primitives::U8, juniper::GraphQLObject};

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "ExecuteV1Args")]
pub struct ExecuteV1ArgsGraphQL {
    pub instruction_data: Vec<U8>,
}

impl From<crate::types::ExecuteV1Args> for ExecuteV1ArgsGraphQL {
    fn from(original: crate::types::ExecuteV1Args) -> Self {
        Self {
            instruction_data: original
                .instruction_data
                .into_iter()
                .map(carbon_core::graphql::primitives::U8)
                .collect(),
        }
    }
}
