Skip to content

Commit d174e7b

Browse files
committed
Resolve PR comment: return price_i64
1 parent 5799959 commit d174e7b

File tree

1 file changed

+4
-2
lines changed
  • pages/price-feeds/use-real-time-data

1 file changed

+4
-2
lines changed

pages/price-feeds/use-real-time-data/sui.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,11 @@ public fun get_sui_price(
106106
assert!(price_id == testnet_sui_price_id, E_INVALID_ID);
107107

108108
// Extract the price, decimal, and timestamp from the price struct and use them.
109-
let decimal_i64 = price::get_expo(&price_struct);
109+
let _decimal_i64 = price::get_expo(&price_struct);
110110
let price_i64 = price::get_price(&price_struct);
111-
let timestamp_sec = price::get_timestamp(&price_struct);
111+
let _timestamp_sec = price::get_timestamp(&price_struct);
112+
113+
price_i64
112114
}
113115
```
114116

0 commit comments

Comments
 (0)