Skip to content

fix: SafeCallResult and CompensationAction missing #[contracttype] derive #33

Description

@Icahbod

SafeCallResult and CompensationAction in apexchainx_calculator/src/cross_contract_safety.rs are returned from public helpers and need to cross the contract host boundary, but neither is annotated with #[contracttype]. Auto-generated Soroban clients cannot (de)serialise the type when it appears in a contract method signature, leading to a compile error the moment a downstream workflow surfaces the result. Add #[contracttype] (with the appropriate Clone, Debug, Eq, PartialEq derives) so the type is portable, mirroring the fix applied to ConfigBundle in #1 and #19.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignbugSomething isn't workingrefactoring

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions