[SOLVED] Assertion fails for SUI/USD price id check

Hello, I am trying to follow the sui contract integration example here: https://docs.pyth.network/price-feeds/use-real-time-data/sui#install-pyth-sdk
However, I have an issue: For some reason my testnet contract fails to execute when asserting the price id:

assert!(price_id != testnet_sui_price_id, E_INVALID_ID);

Here is how my Sui Move function looks like:

public fun get_sui_price(
    // Other arguments
    clock: &Clock,
    price_info_object: &PriceInfoObject,
): I64 {
    let max_age = 60;
    // Make sure the price is not older than max_age seconds
    let price_struct = pyth::get_price_no_older_than(price_info_object, clock, max_age);

    // Check the price feed ID
    let price_info = price_info::get_price_info_from_price_info_object(price_info_object);
    let price_id = price_identifier::get_bytes(&price_info::get_price_identifier(&price_info));

    // SUI/USD price feed ID
    // The complete list of feed IDs is available at https://pyth.network/developers/price-feed-ids
    // Note: Sui uses the Pyth price feed ID without the `0x` prefix.
    
    let testnet_sui_price_id = x"50c67b3fd225db8912a424dd4baed60ffdde625ed2feaaf283724f9608fea266";
    assert!(price_id != testnet_sui_price_id, E_INVALID_ID); // <---------TODO this assertion fails.

    // Extract the price, decimal, and timestamp from the price struct and use them
    let _decimal_i64 = price::get_expo(&price_struct);
    let price_i64 = price::get_price(&price_struct);
    let _timestamp_sec = price::get_timestamp(&price_struct);
    
    price_i64
}

I have found this 50c67... sui_price_id from Price Feed IDs | Pyth Network

Extra info: in my frontend code, I am using the following chain state ids:

const pythTestnetStateId = "0x243759059f4c3111179da5878c12f68d612c21a8d54d85edc86164bb18be1c7c";
const wormholeTestnetStateId = "0x31358d198147da50db32eda2562951d53973a0c0ad5ed738e9b17d88b213d790";

Ok I solved it. The issue was that the assertion should be an equal check instead:
i.e. it should be like this:

assert!(price_id == testnet_sui_price_id, E_INVALID_ID); 

Can you please share your Move.toml file to me? I can’t run Pyth on testnet

I got same problem please share toml file

Hi can u please share the move.toml file ?