From 5594fa9b6d04ee0228d010df32042f344a4c15b5 Mon Sep 17 00:00:00 2001 From: melonges Date: Wed, 23 Apr 2025 20:50:28 +0300 Subject: [PATCH] fix: typo in assert --- pages/price-feeds/use-real-time-data/sui.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/price-feeds/use-real-time-data/sui.mdx b/pages/price-feeds/use-real-time-data/sui.mdx index 07a94ae4..5d6fe0d0 100644 --- a/pages/price-feeds/use-real-time-data/sui.mdx +++ b/pages/price-feeds/use-real-time-data/sui.mdx @@ -98,7 +98,7 @@ module pyth_example::main { // ETH/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. - assert!(price_id!=x"ff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace", E_INVALID_ID); + assert!(price_id == "ff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace", E_INVALID_ID); // Extract the price, decimal, and timestamp from the price struct and use them let decimal_i64 = price::get_expo(&price_struct);