#![allow(deprecated)]

use multiversx_sc::types::{SCResult, StaticSCError};
use multiversx_sc_scenario::api::StaticApi;

use alloc_features::macro_features_legacy::MacroFeaturesLegacy;

/// Likely to be removed soon.
#[test]
fn test_sc_error() {
    let bf = alloc_features::contract_obj::<StaticApi>();
    let result = bf.return_sc_error();
    assert_eq!(
        SCResult::Err(StaticSCError::from(&b"return_sc_error"[..])),
        result
    );
}
